From 522c9b69249d66c201fed608f95a5da8d3064ed8 Mon Sep 17 00:00:00 2001 From: Joshua Bronson Date: Fri, 4 Nov 2022 22:04:08 -0400 Subject: [PATCH] Upgrade dev dependencies. Also, add check-manifest pre-commit hook. --- .gitignore | 1 - .pre-commit-config.yaml | 10 +++++++--- .refurb.toml | 6 ------ MANIFEST.in | 11 +++++++---- requirements/dev.txt | 6 ++++-- requirements/lint.txt | 8 -------- requirements/tests.txt | 8 -------- 7 files changed, 18 insertions(+), 32 deletions(-) delete mode 100644 .refurb.toml diff --git a/.gitignore b/.gitignore index ad62996..10dbaf4 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ .tox .devenv .venv -.vscode/settings.json __pycache__ _build bidict.egg-info diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9df408c..8ea2f83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,15 +40,19 @@ repos: - id: flake8 - repo: https://github.com/dosisod/refurb - rev: v1.4.0 + rev: v1.5.0 hooks: - id: refurb - args: ["--config-file", ".refurb.toml"] - repo: https://github.com/RobertCraigie/pyright-python rev: v1.1.278 hooks: - - id: pyright + - id: pyright + + - repo: https://github.com/mgedmin/check-manifest + rev: "0.48" + hooks: + - id: check-manifest # https://pre-commit.com/#repository-local-hooks - repo: local diff --git a/.refurb.toml b/.refurb.toml deleted file mode 100644 index b57c47e..0000000 --- a/.refurb.toml +++ /dev/null @@ -1,6 +0,0 @@ -[tool.refurb] -ignore = [ - # Don't pass an argument if it's the same as the default value. - # Can remove if https://github.com/dosisod/refurb/issues/30 is fixed: - 120, -] diff --git a/MANIFEST.in b/MANIFEST.in index a1a3118..74e851e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,22 +1,25 @@ -# Tip: pip install check-manifest && check-manifest -uv +# Tip: pre-commit run check-manifest include LICENSE include *.py +include *.md include *.rst include *.sh +include *.json include *.yaml include *.yml +include *.ini include .coveragerc +include .flake8 include .editorconfig include .pre-commit-config.yaml include .pylintrc -include mypy.ini +include .vscode/tasks.json include pyproject.toml -include pytest.ini -include tox.ini include docs/_static/custom.css include docs/_static/bidict-types-diagram.dot include bidict/py.typed +recursive-include .devcontainer * recursive-include assets *.* recursive-include docs/_static *.* recursive-include docs *.py diff --git a/requirements/dev.txt b/requirements/dev.txt index 09ffaa8..8b9dd21 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -20,17 +20,19 @@ click==8.1.3 # pip-tools pep517==0.13.0 # via build -pip-compile-multi==2.4.6 +pip-compile-multi==2.5.0 # via -r requirements/dev.in pip-tools==6.9.0 # via pip-compile-multi six==1.16.0 # via tox +tomli==2.0.1 + # via check-manifest toposort==1.7 # via pip-compile-multi tox==3.27.0 # via -r requirements/dev.in -wheel==0.37.1 +wheel==0.38.1 # via pip-tools # The following packages are considered to be unsafe in a requirements file: diff --git a/requirements/lint.txt b/requirements/lint.txt index 84e04e0..e7f844e 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -17,10 +17,6 @@ dill==0.3.6 # via pylint distlib==0.3.6 # via virtualenv -exceptiongroup==1.0.0 - # via - # hypothesis - # pytest filelock==3.8.0 # via virtualenv hypothesis==6.56.4 @@ -59,10 +55,6 @@ sortedcontainers==2.4.0 # via hypothesis toml==0.10.2 # via pre-commit -tomli==2.0.1 - # via - # pylint - # pytest tomlkit==0.11.6 # via pylint virtualenv==20.16.6 diff --git a/requirements/tests.txt b/requirements/tests.txt index 53c10a5..ce8f143 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -14,10 +14,6 @@ coverage[toml]==6.5.0 # via # -r requirements/tests.in # pytest-cov -exceptiongroup==1.0.0 - # via - # hypothesis - # pytest hypothesis==6.56.4 # via -r requirements/tests.in icdiff==2.0.5 @@ -55,7 +51,3 @@ sortedcontainers==2.4.0 # -r requirements/tests.in # hypothesis # sortedcollections -tomli==2.0.1 - # via - # coverage - # pytest