Skip to content

Commit

Permalink
➕ Add development and test requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Apr 29, 2024
1 parent 237bec2 commit 1ba9f45
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions requirements-docs-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# For mkdocstrings and code generator using templates
black >=22.10,<24.0
18 changes: 18 additions & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-e .
-r requirements-docs-tests.txt
mkdocs-material==9.4.7
mdx-include >=1.4.1,<2.0.0
mkdocs-markdownextradata-plugin >=0.1.7,<0.3.0
mkdocs-redirects>=1.2.1,<1.3.0
pyyaml >=5.3.1,<7.0.0
# For Material for MkDocs, Chinese search
jieba==0.42.1
# For image processing by Material for MkDocs
pillow==10.1.0
# For image processing by Material for MkDocs
cairosvg==2.7.0
mkdocstrings[python]==0.23.0
griffe-typingdoc==0.2.2
# For griffe, it formats with black
black==23.3.0
typer == 0.12.3
11 changes: 11 additions & 0 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-e .
-r requirements-docs-tests.txt
pytest >=7.0.1,<8.0.0
coverage[toml] >=6.2,<8.0
mypy ==1.4.1
ruff ==0.2.0
# For FastAPI tests
fastapi >=0.103.2
httpx ==0.24.1
# TODO: upgrade when deprecating Python 3.7
dirty-equals ==0.6.0
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-e .

-r requirements-tests.txt
-r requirements-docs.txt

pre-commit >=2.17.0,<4.0.0

0 comments on commit 1ba9f45

Please sign in to comment.