diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 59909d9..49186ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ exclude: > repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.3.0 + rev: v4.0.1 hooks: - id: check-json - id: check-yaml @@ -26,29 +26,29 @@ repos: additional_dependencies: [setuptools>=46.4.0] - repo: https://github.com/pycqa/isort - rev: 5.8.0 + rev: 5.9.3 hooks: - id: isort - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 21.7b0 hooks: - id: black - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.4 + - repo: https://github.com/PyCQA/flake8 + rev: 3.9.2 hooks: - id: flake8 additional_dependencies: [flake8-bugbear==21.3.1] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.790 + rev: v0.910 hooks: - id: mypy additional_dependencies: [] - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.16.0 + rev: v1.17.0 hooks: - id: setup-cfg-fmt diff --git a/setup.cfg b/setup.cfg index c4adfbe..0113746 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,6 +36,10 @@ install_requires = python_requires = ~=3.6 include_package_data = True +[options.packages.find] +exclude = + test* + [options.extras_require] code_style = pre-commit~=2.12 @@ -55,10 +59,6 @@ theme_rtd = theme_sbt = sphinx-book-theme~=0.1.0 -[options.packages.find] -exclude = - test* - [mypy] show_error_codes = True warn_unused_ignores = True @@ -66,6 +66,9 @@ warn_redundant_casts = True no_implicit_optional = True strict_equality = True +[mypy-docutils.*] +ignore_missing_imports = True + [flake8] max-line-length = 100 extend-ignore = E203