Skip to content

Commit 47b8025

Browse files
authored
Run prospector at the end (it's slowest) (#175)
1 parent 6f485b0 commit 47b8025

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

pre-commit-config.yaml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,29 @@ repos:
5050
# - id: docformatter
5151
# args: ['--in-place', '--wrap-summaries=80', '--wrap-descriptions=80', '--pre-summary-newline']
5252

53+
- repo: https://github.com/akaihola/darker
54+
rev: 1.3.2
55+
hooks:
56+
- id: darker
57+
# TODO: find a way to pass `--check` only when running via `tox -e
58+
# pre-commit`
59+
args: ['--isort']
60+
additional_dependencies:
61+
- isort==5.10.1
62+
# darker is not compatible with v22.1.0
63+
# https://github.com/akaihola/darker/issues/264
64+
- black==21.12b0
65+
exclude: |
66+
(?x)^(
67+
readthedocs/rtd_tests/files/conf.py|
68+
)$
69+
70+
- repo: https://github.com/asottile/blacken-docs
71+
rev: v1.12.1
72+
hooks:
73+
- id: blacken-docs
74+
additional_dependencies: [black==22.10.0]
75+
5376
- repo: https://github.com/PyCQA/prospector
5477
rev: 1.3.1
5578
hooks:
@@ -75,25 +98,3 @@ repos:
7598
- -r
7699
- https://raw.githubusercontent.com/readthedocs/readthedocs.org/main/requirements/pip.txt
77100

78-
- repo: https://github.com/akaihola/darker
79-
rev: 1.3.2
80-
hooks:
81-
- id: darker
82-
# TODO: find a way to pass `--check` only when running via `tox -e
83-
# pre-commit`
84-
args: ['--isort']
85-
additional_dependencies:
86-
- isort==5.10.1
87-
# darker is not compatible with v22.1.0
88-
# https://github.com/akaihola/darker/issues/264
89-
- black==21.12b0
90-
exclude: |
91-
(?x)^(
92-
readthedocs/rtd_tests/files/conf.py|
93-
)$
94-
95-
- repo: https://github.com/asottile/blacken-docs
96-
rev: v1.12.1
97-
hooks:
98-
- id: blacken-docs
99-
additional_dependencies: [black==22.10.0]

0 commit comments

Comments
 (0)