From 6e43a551ae77b64a83af51916deb0b3080d2dbee Mon Sep 17 00:00:00 2001 From: Artur Barseghyan Date: Thu, 28 Nov 2024 21:24:48 +0100 Subject: [PATCH] Clean up (#236) --- .pre-commit-config.yaml | 2 +- Makefile | 14 ----- docs/requirements.txt | 136 +++++++++++++++++++--------------------- pyproject.toml | 1 - 4 files changed, 67 insertions(+), 86 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c876df2..bf17298 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ exclude: "^docs/|/migrations/" -default_stages: [ commit, push ] +default_stages: [ pre-commit, pre-push ] default_language_version: python: python3 diff --git a/Makefile b/Makefile index b59eb59..c06dfac 100644 --- a/Makefile +++ b/Makefile @@ -27,14 +27,6 @@ auto_build_docs: pre-commit: pre-commit run --all-files -## Format code using Black -#black: -# source $(VENV) && black . -# -## Sort imports using isort -#isort: -# source $(VENV) && isort . --overwrite-in-place - doc8: source $(VENV) && doc8 @@ -166,12 +158,6 @@ clean: rm -rf dist/ rm -rf fake.py.egg-info/ -compile-requirements-pip-tools: - source $(VENV) && python -m piptools compile --all-extras -o docs/requirements.txt pyproject.toml - -compile-requirements-upgrade-pip-tools: - source $(VENV) && python -m piptools compile --all-extras -o docs/requirements.txt pyproject.toml --upgrade - compile-requirements: source $(VENV) && uv pip compile --all-extras -o docs/requirements.txt pyproject.toml diff --git a/docs/requirements.txt b/docs/requirements.txt index 2fd2d87..6920923 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -2,40 +2,41 @@ # uv pip compile --all-extras -o docs/requirements.txt pyproject.toml alabaster==0.7.16 # via sphinx +anyio==4.6.2.post1 + # via + # starlette + # watchfiles asgiref==3.8.1 # via django asttokens==2.4.1 # via stack-data -babel==2.15.0 +babel==2.16.0 # via sphinx backports-tarfile==1.2.0 # via jaraco-context -black==24.4.2 - # via fake-py (pyproject.toml) -build==1.2.1 - # via pip-tools -certifi==2024.7.4 +certifi==2024.8.30 # via requests -cffi==1.16.0 +cffi==1.17.1 # via cryptography -charset-normalizer==3.3.2 +charset-normalizer==3.4.0 # via requests click==8.1.7 # via - # black - # pip-tools # pydoclint -coverage==7.6.0 + # uvicorn +colorama==0.4.6 + # via sphinx-autobuild +coverage==7.6.8 # via pytest-cov -cryptography==42.0.8 +cryptography==43.0.3 # via secretstorage decorator==5.1.1 # via ipython detect-secrets==1.5.0 # via fake-py (pyproject.toml) -django==5.0.7 +django==5.1.3 # via fake-py (pyproject.toml) -doc8==1.1.1 +doc8==1.1.2 # via fake-py (pyproject.toml) docstring-parser-fork==0.0.9 # via pydoclint @@ -47,29 +48,31 @@ docutils==0.19 # sphinx # sphinx-no-pragma # sphinx-rtd-theme -executing==2.0.1 +executing==2.1.0 # via stack-data -idna==3.7 - # via requests +h11==0.14.0 + # via uvicorn +idna==3.10 + # via + # anyio + # requests imagesize==1.4.1 # via sphinx -importlib-metadata==8.0.0 +importlib-metadata==8.5.0 # via # keyring # twine iniconfig==2.0.0 # via pytest -ipython==8.26.0 - # via fake-py (pyproject.toml) -isort==5.13.2 +ipython==8.29.0 # via fake-py (pyproject.toml) jaraco-classes==3.4.0 # via keyring -jaraco-context==5.3.0 +jaraco-context==6.0.1 # via keyring -jaraco-functools==4.0.1 +jaraco-functools==4.1.0 # via keyring -jedi==0.19.1 +jedi==0.19.2 # via ipython jeepney==0.8.0 # via @@ -77,61 +80,49 @@ jeepney==0.8.0 # secretstorage jinja2==3.1.4 # via sphinx -keyring==25.2.1 +keyring==25.5.0 # via twine markdown-it-py==3.0.0 # via rich -markupsafe==2.1.5 +markupsafe==3.0.2 # via jinja2 matplotlib-inline==0.1.7 # via ipython mdurl==0.1.2 # via markdown-it-py -more-itertools==10.3.0 +more-itertools==10.5.0 # via # jaraco-classes # jaraco-functools -mypy==1.10.1 +mypy==1.13.0 # via fake-py (pyproject.toml) mypy-extensions==1.0.0 - # via - # black - # mypy + # via mypy nh3==0.2.18 # via readme-renderer -packaging==24.1 +packaging==24.2 # via - # black - # build # pytest # sphinx parso==0.8.4 # via jedi -pathspec==0.12.1 - # via black -pbr==6.0.0 +pbr==6.1.0 # via stevedore pexpect==4.9.0 # via ipython -pip==24.1.2 - # via pip-tools -pip-tools==7.4.1 - # via fake-py (pyproject.toml) pkginfo==1.10.0 # via twine -platformdirs==4.2.2 - # via black pluggy==1.5.0 # via pytest -prompt-toolkit==3.0.47 +prompt-toolkit==3.0.48 # via ipython ptyprocess==0.7.0 # via pexpect -pure-eval==0.2.2 +pure-eval==0.2.3 # via stack-data pycparser==2.22 # via cffi -pydoclint==0.5.6 +pydoclint==0.5.9 # via fake-py (pyproject.toml) pygments==2.18.0 # via @@ -140,22 +131,18 @@ pygments==2.18.0 # readme-renderer # rich # sphinx -pyproject-hooks==1.1.0 - # via - # build - # pip-tools -pytest==8.2.2 +pytest==8.3.3 # via # fake-py (pyproject.toml) # pytest-cov # pytest-django -pytest-cov==5.0.0 +pytest-cov==6.0.0 # via fake-py (pyproject.toml) -pytest-django==4.8.0 +pytest-django==4.9.0 # via fake-py (pyproject.toml) pytest-rst==0.1.5 # via fake-py (pyproject.toml) -pyyaml==6.0.1 +pyyaml==6.0.2 # via detect-secrets readme-renderer==43.0 # via twine @@ -171,47 +158,52 @@ restructuredtext-lint==1.4.0 # via doc8 rfc3986==2.0.0 # via twine -rich==13.7.1 +rich==13.9.4 # via twine -ruff==0.5.2 +ruff==0.8.0 # via fake-py (pyproject.toml) secretstorage==3.3.3 # via keyring -setuptools==70.3.0 - # via pip-tools six==1.16.0 # via asttokens +sniffio==1.3.1 + # via anyio snowballstemmer==2.2.0 # via sphinx sphinx==5.3.0 # via # fake-py (pyproject.toml) + # sphinx-autobuild # sphinx-no-pragma # sphinx-rtd-theme # sphinxcontrib-jquery +sphinx-autobuild==2024.10.3 + # via fake-py (pyproject.toml) sphinx-no-pragma==0.1.1 # via fake-py (pyproject.toml) sphinx-rtd-theme==2.0.0 # via fake-py (pyproject.toml) -sphinxcontrib-applehelp==1.0.8 +sphinxcontrib-applehelp==2.0.0 # via sphinx -sphinxcontrib-devhelp==1.0.6 +sphinxcontrib-devhelp==2.0.0 # via sphinx -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-htmlhelp==2.1.0 # via sphinx sphinxcontrib-jquery==4.1 # via sphinx-rtd-theme sphinxcontrib-jsmath==1.0.1 # via sphinx -sphinxcontrib-qthelp==1.0.7 +sphinxcontrib-qthelp==2.0.0 # via sphinx -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-serializinghtml==2.0.0 # via sphinx -sqlparse==0.5.1 +sqlparse==0.5.2 # via django stack-data==0.6.3 # via ipython -stevedore==5.2.0 +starlette==0.41.3 + # via sphinx-autobuild +stevedore==5.4.0 # via doc8 traitlets==5.14.3 # via @@ -223,15 +215,19 @@ typing-extensions==4.12.2 # via # ipython # mypy -urllib3==2.2.2 +urllib3==2.2.3 # via # requests # twine -uv==0.2.26 +uv==0.5.4 # via fake-py (pyproject.toml) +uvicorn==0.32.1 + # via sphinx-autobuild +watchfiles==0.24.0 + # via sphinx-autobuild wcwidth==0.2.13 # via prompt-toolkit -wheel==0.43.0 - # via pip-tools -zipp==3.19.2 +websockets==14.1 + # via sphinx-autobuild +zipp==3.21.0 # via importlib-metadata diff --git a/pyproject.toml b/pyproject.toml index 99b7a3b..25e6e17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,6 @@ dev = [ "doc8", "ipython", "mypy", - "pip-tools", "pydoclint", "ruff", "twine",