Skip to content

Commit

Permalink
uprev linting, testing and docs requirements (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored May 6, 2024
1 parent b4cf8ad commit 94b6780
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 86 deletions.
5 changes: 2 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ markdown_extensions:
- md_in_html
- mdx_include
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg

extra:
social:
Expand All @@ -68,7 +68,6 @@ extra:
plugins:
- search
- mkdocstrings:
watch: [watchfiles]
handlers:
python:
rendering:
Expand Down
1 change: 0 additions & 1 deletion requirements/docs.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black
mkdocs
mkdocs-material
mkdocs-simple-hooks
Expand Down
99 changes: 56 additions & 43 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,107 +2,120 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --constraint=requirements/linting.txt --constraint=requirements/pyproject.txt --constraint=requirements/testing.txt --output-file=requirements/docs.txt requirements/docs.in
# pip-compile --constraint=requirements/linting.txt --constraint=requirements/pyproject.txt --constraint=requirements/testing.txt --output-file=requirements/docs.txt --strip-extras requirements/docs.in
#
black==22.8.0
# via -r requirements/docs.in
click==8.1.3
babel==2.15.0
# via mkdocs-material
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via
# black
# mkdocs
# mkdocstrings
colorama==0.4.6
# via
# griffe
# mkdocs-material
cyclic==1.0.0
# via mdx-include
ghp-import==2.1.0
# via mkdocs
griffe==0.22.0
griffe==0.44.0
# via mkdocstrings-python
importlib-metadata==4.12.0
# via mkdocs
jinja2==3.1.2
idna==3.7
# via
# -c requirements/linting.txt
# -c requirements/pyproject.txt
# requests
jinja2==3.1.4
# via
# mkdocs
# mkdocs-material
# mkdocstrings
markdown==3.3.7
markdown==3.6
# via
# mdx-include
# mkdocs
# mkdocs-autorefs
# mkdocs-material
# mkdocstrings
# pymdown-extensions
markupsafe==2.1.1
markupsafe==2.1.5
# via
# jinja2
# mkdocs
# mkdocs-autorefs
# mkdocstrings
mdx-include==1.4.2
# via -r requirements/docs.in
mergedeep==1.3.4
# via mkdocs
mkdocs==1.3.1
# via
# mkdocs
# mkdocs-get-deps
mkdocs==1.6.0
# via
# -r requirements/docs.in
# mkdocs-autorefs
# mkdocs-material
# mkdocs-simple-hooks
# mkdocstrings
mkdocs-autorefs==0.4.1
mkdocs-autorefs==1.0.1
# via mkdocstrings
mkdocs-material==8.4.3
mkdocs-get-deps==0.2.0
# via mkdocs
mkdocs-material==9.5.21
# via -r requirements/docs.in
mkdocs-material-extensions==1.0.3
mkdocs-material-extensions==1.3.1
# via mkdocs-material
mkdocs-simple-hooks==0.1.5
# via -r requirements/docs.in
mkdocstrings[python]==0.19.0
mkdocstrings==0.25.1
# via
# -r requirements/docs.in
# mkdocstrings-python
mkdocstrings-python==0.7.1
mkdocstrings-python==1.10.0
# via mkdocstrings
mypy-extensions==0.4.3
# via
# -c requirements/linting.txt
# black
packaging==21.3
packaging==24.0
# via
# -c requirements/testing.txt
# mkdocs
pathspec==0.10.1
# via black
platformdirs==2.5.2
# via black
pygments==2.15.0
paginate==0.5.6
# via mkdocs-material
pathspec==0.12.1
# via mkdocs
platformdirs==4.2.1
# via
# mkdocs-get-deps
# mkdocstrings
pygments==2.18.0
# via
# -c requirements/testing.txt
# mkdocs-material
pymdown-extensions==10.0
pymdown-extensions==10.8.1
# via
# mkdocs-material
# mkdocstrings
pyparsing==3.0.9
# via
# -c requirements/testing.txt
# packaging
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
# via ghp-import
pyyaml==6.0
pyyaml==6.0.1
# via
# mkdocs
# mkdocs-get-deps
# pymdown-extensions
# pyyaml-env-tag
pyyaml-env-tag==0.1
# via mkdocs
rcslice==1.1.0
# via mdx-include
regex==2024.4.28
# via mkdocs-material
requests==2.31.0
# via mkdocs-material
six==1.16.0
# via python-dateutil
tomli==2.0.1
# via
# -c requirements/linting.txt
# -c requirements/testing.txt
# black
watchdog==2.1.9
urllib3==2.2.1
# via requests
watchdog==4.0.0
# via mkdocs
zipp==3.8.1
# via importlib-metadata
20 changes: 10 additions & 10 deletions requirements/linting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements/linting.txt requirements/linting.in
# pip-compile --output-file=requirements/linting.txt --strip-extras requirements/linting.in
#
async-generator==1.10
# via trio
attrs==22.1.0
attrs==23.2.0
# via
# outcome
# trio
exceptiongroup==1.2.1
# via trio
idna==3.7
# via trio
mypy==0.971
mypy==1.10.0
# via -r requirements/linting.in
mypy-extensions==0.4.3
mypy-extensions==1.0.0
# via mypy
outcome==1.2.0
outcome==1.3.0.post0
# via trio
ruff==0.4.3
# via -r requirements/linting.in
sniffio==1.3.0
sniffio==1.3.1
# via trio
sortedcontainers==2.4.0
# via trio
tomli==2.0.1
# via mypy
trio==0.21.0
trio==0.25.0
# via -r requirements/linting.in
typing-extensions==4.3.0
typing-extensions==4.11.0
# via mypy
4 changes: 2 additions & 2 deletions requirements/pyproject.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --constraint=requirements/linting.txt --output-file=requirements/pyproject.txt pyproject.toml
# pip-compile --constraint=requirements/linting.txt --output-file=requirements/pyproject.txt --strip-extras pyproject.toml
#
anyio==3.6.1
# via watchfiles (pyproject.toml)
idna==3.7
# via
# -c requirements/linting.txt
# anyio
sniffio==1.3.0
sniffio==1.3.1
# via
# -c requirements/linting.txt
# anyio
3 changes: 2 additions & 1 deletion requirements/testing.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage
dirty-equals
pytest
# avoid https://github.com/pytest-dev/pytest/issues/11904, I would see an obvious problem/solution but if failed on CI
pytest<8
pytest-mock
pytest-pretty
pytest-timeout
42 changes: 20 additions & 22 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,45 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --constraint=requirements/linting.txt --constraint=requirements/pyproject.txt --output-file=requirements/testing.txt requirements/testing.in
# pip-compile --constraint=requirements/linting.txt --constraint=requirements/pyproject.txt --output-file=requirements/testing.txt --strip-extras requirements/testing.in
#
commonmark==0.9.1
# via rich
coverage==6.4.4
coverage==7.5.1
# via -r requirements/testing.in
dirty-equals==0.5.0
dirty-equals==0.7.1.post0
# via -r requirements/testing.in
exceptiongroup==1.2.1
# via
# -c requirements/linting.txt
# pytest
iniconfig==2.0.0
# via pytest
iniconfig==1.1.1
# via pytest
packaging==21.3
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
packaging==24.0
# via pytest
pluggy==1.0.0
pluggy==1.5.0
# via pytest
pygments==2.15.0
pygments==2.18.0
# via rich
pyparsing==3.0.9
# via packaging
pytest==7.4.2
pytest==7.4.4
# via
# -r requirements/testing.in
# pytest-mock
# pytest-pretty
# pytest-timeout
pytest-mock==3.8.2
pytest-mock==3.14.0
# via -r requirements/testing.in
pytest-pretty==0.0.1
pytest-pretty==1.2.0
# via -r requirements/testing.in
pytest-timeout==2.1.0
pytest-timeout==2.3.1
# via -r requirements/testing.in
pytz==2022.2.1
pytz==2024.1
# via dirty-equals
rich==12.6.0
rich==13.7.1
# via pytest-pretty
tomli==2.0.1
# via
# -c requirements/linting.txt
# pytest
typing-extensions==4.3.0
# via
# -c requirements/linting.txt
# dirty-equals
5 changes: 1 addition & 4 deletions watchfiles/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
from .main import Change, FileChange, awatch, watch

if TYPE_CHECKING:
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal # type: ignore[misc]
from typing import Literal

__all__ = 'run_process', 'arun_process', 'detect_target_type', 'import_string'
logger = logging.getLogger('watchfiles.main')
Expand Down

0 comments on commit 94b6780

Please sign in to comment.