From 568c8567447660a0d6d144d5a48b3e06c9931113 Mon Sep 17 00:00:00 2001 From: Joshua Bronson Date: Sun, 27 Nov 2022 18:22:58 -0500 Subject: [PATCH] Upgrade dev dependencies. --- .flake8 | 21 ++++++++++++--------- .pre-commit-config.yaml | 8 ++++---- requirements/dev.txt | 8 ++++---- requirements/docs.txt | 4 ++-- requirements/lint.txt | 12 ++++++------ requirements/tests.txt | 2 +- 6 files changed, 29 insertions(+), 26 deletions(-) diff --git a/.flake8 b/.flake8 index cb23e6a..25fa546 100644 --- a/.flake8 +++ b/.flake8 @@ -1,4 +1,4 @@ -# http://flake8.pycqa.org/en/latest/user/configuration.html +# https://flake8.pycqa.org/en/latest/user/configuration.html [flake8] # B = bugbear # E = pycodestyle errors @@ -6,14 +6,13 @@ # W = pycodestyle warnings # B9 = bugbear opinions -ignore = - E501, # line too long (REMOVE THIS if we adopt auto-formatting) - E265, # block comment should start with '# ' - E266, # too many leading '#' for block comment - E402, # import not at top of file - E704, # more than one statement on a single line (flags @typing.overload's) - E722, # broad except - F811, # redefinition of unused ... (flags @typing.overload's) +extend-ignore = + # line too long + E501 + # block comment should start with '# ' + E265, + # too many leading '#' for block comment + E266, per-file-ignores = # __init__.py collects functionality implemented in the rest of the package @@ -21,3 +20,7 @@ per-file-ignores = # and does not understand mypy-style "import foo as foo" explicit re-exports, # so ignore F401 in this file ("imported but unused"). bidict/__init__.py:F401 + + # import not at top of file + setup.py:E402 + docs/conf.py:E402 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8ea2f83..f1ea046 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -23,7 +23,7 @@ repos: args: ["--uri-ignore-words-list", "*"] # https://github.com/codespell-project/codespell/issues/2473 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.982 + rev: v0.991 hooks: - id: mypy exclude: setup.py|docs/conf.py|tests @@ -35,12 +35,12 @@ repos: exclude: setup.py|docs/conf.py|tests - repo: https://github.com/pycqa/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 - repo: https://github.com/dosisod/refurb - rev: v1.5.0 + rev: v1.8.0 hooks: - id: refurb diff --git a/requirements/dev.txt b/requirements/dev.txt index 8b9dd21..633c98e 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -20,9 +20,9 @@ click==8.1.3 # pip-tools pep517==0.13.0 # via build -pip-compile-multi==2.5.0 +pip-compile-multi==2.6.1 # via -r requirements/dev.in -pip-tools==6.9.0 +pip-tools==6.11.0 # via pip-compile-multi six==1.16.0 # via tox @@ -30,9 +30,9 @@ tomli==2.0.1 # via check-manifest toposort==1.7 # via pip-compile-multi -tox==3.27.0 +tox==3.27.1 # via -r requirements/dev.in -wheel==0.38.1 +wheel==0.38.4 # via pip-tools # The following packages are considered to be unsafe in a requirements file: diff --git a/requirements/docs.txt b/requirements/docs.txt index 00755be..00d4f94 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -51,7 +51,7 @@ sphinx==5.3.0 # sphinx-copybutton sphinx-basic-ng==1.0.0b1 # via furo -sphinx-copybutton==0.5.0 +sphinx-copybutton==0.5.1 # via -r requirements/docs.in sphinxcontrib-applehelp==1.0.2 # via sphinx @@ -65,5 +65,5 @@ sphinxcontrib-qthelp==1.0.3 # via sphinx sphinxcontrib-serializinghtml==1.1.5 # via sphinx -urllib3==1.26.12 +urllib3==1.26.13 # via requests diff --git a/requirements/lint.txt b/requirements/lint.txt index e7f844e..4a63e24 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -5,7 +5,7 @@ # # pip-compile-multi # -astroid==2.12.12 +astroid==2.12.13 # via pylint attrs==22.1.0 # via @@ -19,9 +19,9 @@ distlib==0.3.6 # via virtualenv filelock==3.8.0 # via virtualenv -hypothesis==6.56.4 +hypothesis==6.59.0 # via -r requirements/lint.in -identify==2.5.8 +identify==2.5.9 # via pre-commit iniconfig==1.1.1 # via pytest @@ -35,7 +35,7 @@ nodeenv==1.7.0 # via pre-commit packaging==21.3 # via pytest -platformdirs==2.5.2 +platformdirs==2.5.4 # via # pylint # virtualenv @@ -43,7 +43,7 @@ pluggy==1.0.0 # via pytest pre-commit==2.20.0 # via -r requirements/lint.in -pylint==2.15.5 +pylint==2.15.7 # via -r requirements/lint.in pyparsing==3.0.9 # via packaging @@ -57,7 +57,7 @@ toml==0.10.2 # via pre-commit tomlkit==0.11.6 # via pylint -virtualenv==20.16.6 +virtualenv==20.17.0 # via pre-commit wrapt==1.14.1 # via astroid diff --git a/requirements/tests.txt b/requirements/tests.txt index ce8f143..135fda2 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -14,7 +14,7 @@ coverage[toml]==6.5.0 # via # -r requirements/tests.in # pytest-cov -hypothesis==6.56.4 +hypothesis==6.59.0 # via -r requirements/tests.in icdiff==2.0.5 # via pytest-icdiff