Skip to content

Commit 0293297

Browse files
committed
Fix nox tasks for .pre-commit-config.yaml
1 parent 74e5352 commit 0293297

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ repos:
1111
entry: poetry run -- nox -s project:fix
1212
stages: [ pre-commit ]
1313

14-
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.4.0
16-
hooks:
17-
- id: check-yaml
18-
stages: [ pre-commit ]
19-
- id: end-of-file-fixer
20-
stages: [ pre-commit ]
21-
- id: trailing-whitespace
22-
stages: [ pre-commit ]
23-
2414
- repo: local
2515
hooks:
2616
- id: type-check
@@ -40,3 +30,13 @@ repos:
4030
language: system
4131
entry: poetry run -- nox -s lint:code
4232
stages: [ pre-push ]
33+
34+
- repo: https://github.com/pre-commit/pre-commit-hooks
35+
rev: v5.0.0
36+
hooks:
37+
- id: check-yaml
38+
stages: [ pre-commit ]
39+
- id: end-of-file-fixer
40+
stages: [ pre-commit ]
41+
- id: trailing-whitespace
42+
stages: [ pre-commit ]

doc/changes/unreleased.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# Unreleased
2+
3+
## Bugfixes
4+
5+
* #489: Fixed .pre-commit-config.yaml to use existing nox tasks
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
default_stages: [ commit ]
1+
default_stages: [ pre-commit, pre-push ]
22
repos:
33

44
- repo: local
@@ -8,7 +8,8 @@ repos:
88
types: [ python ]
99
pass_filenames: false
1010
language: system
11-
entry: poetry run -- nox -s fix
11+
entry: poetry run -- nox -s project:fix
12+
stages: [ pre-commit ]
1213

1314
- repo: local
1415
hooks:
@@ -17,7 +18,8 @@ repos:
1718
types: [ python ]
1819
pass_filenames: false
1920
language: system
20-
entry: poetry run -- nox -s type-check
21+
entry: poetry run -- nox -s lint:typing
22+
stages: [ pre-push ]
2123

2224
- repo: local
2325
hooks:
@@ -26,11 +28,15 @@ repos:
2628
types: [ python ]
2729
pass_filenames: false
2830
language: system
29-
entry: poetry run -- nox -s lint
31+
entry: poetry run -- nox -s lint:code
32+
stages: [ pre-push ]
3033

3134
- repo: https://github.com/pre-commit/pre-commit-hooks
32-
rev: v4.4.0
35+
rev: v5.0.0
3336
hooks:
3437
- id: check-yaml
38+
stages: [ pre-commit ]
3539
- id: end-of-file-fixer
36-
- id: trailing-whitespace
40+
stages: [ pre-commit ]
41+
- id: trailing-whitespace
42+
stages: [ pre-commit ]

0 commit comments

Comments
 (0)