diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 323f04c..ee239b5 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.0.1 + rev: v4.1.0 hooks: - id: check-added-large-files args: ['--maxkb=25'] @@ -12,7 +12,6 @@ repos: - id: debug-statements - id: end-of-file-fixer - id: fix-byte-order-marker - - id: forbid-new-submodules - id: mixed-line-ending - id: no-commit-to-branch args: [--branch, main] @@ -30,29 +29,29 @@ repos: - id: rst-inline-touching-normal - id: text-unicode-replacement-char - repo: https://github.com/asottile/pyupgrade - rev: v2.21.2 + rev: v2.31.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/asottile/reorder_python_imports - rev: v2.5.0 + rev: v2.7.1 hooks: - id: reorder-python-imports - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.17.0 + rev: v1.20.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/psf/black - rev: 21.7b0 + rev: 22.1.0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: v1.10.0 + rev: v1.12.1 hooks: - id: blacken-docs additional_dependencies: [black] - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 4.0.1 hooks: - id: flake8 types: [python] @@ -73,11 +72,11 @@ repos: Pygments, ] - repo: https://github.com/PyCQA/doc8 - rev: 0.9.0 + rev: 0.10.1 hooks: - id: doc8 - repo: https://github.com/econchick/interrogate - rev: 1.4.0 + rev: 1.5.0 hooks: - id: interrogate args: [-v, --fail-under=40, src, tests] @@ -87,7 +86,7 @@ repos: - id: codespell args: [-L unparseable] - repo: https://github.com/mgedmin/check-manifest - rev: "0.46" + rev: "0.47" hooks: - id: check-manifest - repo: meta diff --git a/setup.cfg b/setup.cfg index f7dd29f..1867a7f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,6 +19,7 @@ classifiers = Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 project_urls = Documentation = https://github.com/pytask-dev/pytask-stata Github = https://github.com/pytask-dev/pytask-stata diff --git a/tests/test_execute.py b/tests/test_execute.py index 500df9b..163f7b5 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -81,7 +81,9 @@ def task_run_do_file(): tmp_path.joinpath("script.do").write_text(textwrap.dedent("1 + 1")) # Hide Stata if available. - monkeypatch.setattr("pytask_stata.config.shutil.which", lambda x: None) + monkeypatch.setattr( + "pytask_stata.config.shutil.which", lambda x: None # noqa: U100 + ) session = main({"paths": tmp_path})