Skip to content

Commit 7245f71

Browse files
[pre-commit.ci] pre-commit autoupdate (#13)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Raabe <[email protected]>
1 parent 7ce0f2d commit 7245f71

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.2.0
3+
rev: v3.4.0
44
hooks:
55
- id: check-added-large-files
66
args: ['--maxkb=100']
@@ -22,25 +22,25 @@ repos:
2222
- id: rst-inline-touching-normal
2323
- id: text-unicode-replacement-char
2424
- repo: https://github.com/asottile/pyupgrade
25-
rev: v2.7.2
25+
rev: v2.7.4
2626
hooks:
2727
- id: pyupgrade
2828
args: [--py36-plus]
2929
- repo: https://github.com/asottile/reorder_python_imports
30-
rev: v2.3.5
30+
rev: v2.3.6
3131
hooks:
3232
- id: reorder-python-imports
3333
- repo: https://github.com/psf/black
3434
rev: 20.8b1
3535
hooks:
3636
- id: black
3737
- repo: https://github.com/asottile/blacken-docs
38-
rev: v1.8.0
38+
rev: v1.9.1
3939
hooks:
4040
- id: blacken-docs
4141
additional_dependencies: [black]
4242
- repo: https://gitlab.com/pycqa/flake8
43-
rev: 3.8.3
43+
rev: 3.8.4
4444
hooks:
4545
- id: flake8
4646
types: [python]
@@ -64,12 +64,12 @@ repos:
6464
hooks:
6565
- id: doc8
6666
- repo: https://github.com/econchick/interrogate
67-
rev: 1.3.1
67+
rev: 1.3.2
6868
hooks:
6969
- id: interrogate
7070
args: [-v, --fail-under=40, src, tests]
7171
- repo: https://github.com/codespell-project/codespell
72-
rev: v1.17.1
72+
rev: v2.0.0
7373
hooks:
7474
- id: codespell
7575
args: [-L=als]

tests/test_collect.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,9 @@ def test_pytask_collect_task_teardown(
102102

103103
task = DummyClass()
104104
task.depends_on = {
105-
i: FilePathNode(n.split(".")[0], Path(n), Path(n))
106-
for i, n in enumerate(depends_on)
107-
}
108-
task.produces = {
109-
i: FilePathNode(n.split(".")[0], Path(n), Path(n))
110-
for i, n in enumerate(produces)
105+
i: FilePathNode.from_path(Path(n)) for i, n in enumerate(depends_on)
111106
}
107+
task.produces = {i: FilePathNode.from_path(Path(n)) for i, n in enumerate(produces)}
112108
task.markers = [Mark("latex", (), {})]
113109
task.function = task_dummy
114110
task.function.pytaskmark = task.markers

0 commit comments

Comments
 (0)