Skip to content

Commit 7b797f2

Browse files
[pre-commit.ci] pre-commit autoupdate (#2)
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 bd244d7 commit 7b797f2

File tree

5 files changed

+24
-32
lines changed

5 files changed

+24
-32
lines changed

.github/workflows/continuous-integration-workflow.yml

+2-22
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
21-
python-version: ['3.6', '3.7', '3.8']
21+
python-version: ['3.6', '3.7', '3.8', '3.9']
2222

2323
steps:
2424
- uses: actions/checkout@v2
25-
- uses: goanpeca/setup-miniconda@v1
25+
- uses: conda-incubator/setup-miniconda@v2
2626
with:
2727
auto-update-conda: true
2828
python-version: ${{ matrix.python-version }}
@@ -64,23 +64,3 @@ jobs:
6464
if: runner.os == 'Linux' && matrix.python-version == '3.8'
6565
shell: bash -l {0}
6666
run: cat codecov.yml | curl --data-binary @- https://codecov.io/validate
67-
68-
69-
pre-commit:
70-
71-
name: Run pre-commit.
72-
runs-on: ubuntu-latest
73-
74-
steps:
75-
- uses: actions/checkout@v2
76-
77-
- name: Set up Python 3.8
78-
uses: actions/setup-python@v1
79-
with:
80-
python-version: 3.8
81-
82-
- name: Install dependencies
83-
run: pip install tox
84-
85-
- name: Run pre-commit
86-
run: tox -e pre-commit

.pre-commit-config.yaml

+18-6
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']
@@ -9,21 +9,33 @@ repos:
99
exclude: meta.yaml
1010
- id: debug-statements
1111
- id: end-of-file-fixer
12+
- repo: https://github.com/pre-commit/pygrep-hooks
13+
rev: v1.7.0 # Use the ref you want to point at
14+
hooks:
15+
- id: python-check-blanket-noqa
16+
- id: python-check-mock-methods
17+
- id: python-no-eval
18+
- id: python-no-log-warn
19+
- id: python-use-type-annotations
20+
- id: rst-backticks
21+
- id: rst-directive-colons
22+
- id: rst-inline-touching-normal
23+
- id: text-unicode-replacement-char
1224
- repo: https://github.com/asottile/pyupgrade
13-
rev: v2.7.2
25+
rev: v2.7.4
1426
hooks:
1527
- id: pyupgrade
1628
args: [--py36-plus]
1729
- repo: https://github.com/asottile/reorder_python_imports
18-
rev: v2.3.5
30+
rev: v2.3.6
1931
hooks:
2032
- id: reorder-python-imports
2133
- repo: https://github.com/psf/black
2234
rev: 20.8b1
2335
hooks:
2436
- id: black
2537
- repo: https://github.com/asottile/blacken-docs
26-
rev: v1.8.0
38+
rev: v1.9.1
2739
hooks:
2840
- id: blacken-docs
2941
additional_dependencies: [black]
@@ -52,12 +64,12 @@ repos:
5264
hooks:
5365
- id: doc8
5466
- repo: https://github.com/econchick/interrogate
55-
rev: 1.3.1
67+
rev: 1.3.2
5668
hooks:
5769
- id: interrogate
5870
args: [-v, --fail-under=40, src, tests]
5971
- repo: https://github.com/codespell-project/codespell
60-
rev: v1.17.1
72+
rev: v2.0.0
6173
hooks:
6274
- id: codespell
6375
- repo: meta

src/pytask_stata/cli.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Everything related to the CLI."""
12
import click
23
from _pytask.config import hookimpl
34

src/pytask_stata/shared.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Shared functions and variables."""
12
import sys
23

34
if sys.platform == "darwin":

tests/test_collect.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,9 @@ def test_pytask_collect_task_teardown(depends_on, produces, expectation):
121121

122122
task = DummyClass()
123123
task.depends_on = {
124-
i: FilePathNode(n.split(".")[0], Path(n)) for i, n in enumerate(depends_on)
125-
}
126-
task.produces = {
127-
i: FilePathNode(n.split(".")[0], Path(n)) for i, n in enumerate(produces)
124+
i: FilePathNode.from_path(Path(n)) for i, n in enumerate(depends_on)
128125
}
126+
task.produces = {i: FilePathNode.from_path(Path(n)) for i, n in enumerate(produces)}
129127
task.function = task_dummy
130128
task.name = "task_dummy"
131129

0 commit comments

Comments
 (0)