Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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']
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", (), {})]
Expand Down Expand Up @@ -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})

Expand Down