Apply Black to code examples in documentation, refs #1718

Uses blacken-docs. This has a deliberate error which I hope will fail CI.
This commit is contained in:
Simon Willison 2022-04-24 08:50:43 -07:00
commit 36573638b0
5 changed files with 81 additions and 41 deletions

View file

@ -65,13 +65,14 @@ setup(
""",
setup_requires=["pytest-runner"],
extras_require={
"docs": ["sphinx_rtd_theme", "sphinx-autobuild", "codespell"],
"docs": ["sphinx_rtd_theme", "sphinx-autobuild", "codespell", "blacken-docs"],
"test": [
"pytest>=5.2.2,<7.2.0",
"pytest-xdist>=2.2.1,<2.6",
"pytest-asyncio>=0.17,<0.19",
"beautifulsoup4>=4.8.1,<4.12.0",
"black==22.1.0",
"blacken-docs==1.12.1",
"pytest-timeout>=1.4.2,<2.2",
"trustme>=0.7,<0.10",
"cogapp>=3.3.0",