diff --git a/mkdocs.yml b/mkdocs.yml index 5d05ea45..af6c6e4e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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: @@ -68,7 +68,6 @@ extra: plugins: - search - mkdocstrings: - watch: [watchfiles] handlers: python: rendering: diff --git a/requirements/docs.in b/requirements/docs.in index 90509a31..c9a31e45 100644 --- a/requirements/docs.in +++ b/requirements/docs.in @@ -1,4 +1,3 @@ -black mkdocs mkdocs-material mkdocs-simple-hooks diff --git a/requirements/docs.txt b/requirements/docs.txt index 38dc5235..a1f551a9 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -2,28 +2,39 @@ # 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 @@ -31,78 +42,80 @@ markdown==3.3.7 # 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 diff --git a/requirements/linting.txt b/requirements/linting.txt index e29f78c7..7794fc40 100644 --- a/requirements/linting.txt +++ b/requirements/linting.txt @@ -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 diff --git a/requirements/pyproject.txt b/requirements/pyproject.txt index e8b5c597..22963f27 100644 --- a/requirements/pyproject.txt +++ b/requirements/pyproject.txt @@ -2,7 +2,7 @@ # 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) @@ -10,7 +10,7 @@ idna==3.7 # via # -c requirements/linting.txt # anyio -sniffio==1.3.0 +sniffio==1.3.1 # via # -c requirements/linting.txt # anyio diff --git a/requirements/testing.in b/requirements/testing.in index db7f8efb..d26e53cb 100644 --- a/requirements/testing.in +++ b/requirements/testing.in @@ -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 diff --git a/requirements/testing.txt b/requirements/testing.txt index 584400c0..ebda4919 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -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 diff --git a/watchfiles/run.py b/watchfiles/run.py index d1e24947..5a6c8009 100644 --- a/watchfiles/run.py +++ b/watchfiles/run.py @@ -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')