diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb0389f..2b88954 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=100'] @@ -22,29 +22,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.6.0 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: 21.12b0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: v1.10.0 + rev: v1.12.0 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] @@ -65,11 +65,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] @@ -79,7 +79,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 27c40a3..fb0a100 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 Programming Language :: R project_urls = Changelog = https://github.com/pytask-dev/pytask-r/blob/main/CHANGES.rst diff --git a/tests/test_execute.py b/tests/test_execute.py index 2410840..24a79d3 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -24,7 +24,9 @@ class DummyTask: def test_pytask_execute_task_setup(monkeypatch, found_r, expectation): """Make sure that the task setup raises errors.""" # Act like r is installed since we do not test this. - monkeypatch.setattr("pytask_r.execute.shutil.which", lambda x: found_r) + monkeypatch.setattr( + "pytask_r.execute.shutil.which", lambda x: found_r # noqa: U100 + ) task = DummyTask() task.markers = [Mark("r", (), {})] @@ -95,7 +97,7 @@ def task_run_r_script(): tmp_path.joinpath("script.r").write_text(textwrap.dedent(r_script)) # Hide Rscript if available. - monkeypatch.setattr("pytask_r.execute.shutil.which", lambda x: None) + monkeypatch.setattr("pytask_r.execute.shutil.which", lambda x: None) # noqa: U100 session = main({"paths": tmp_path})