Skip to content

Commit a334abb

Browse files
authored
Indent all pre-commit repo config one step (#1345)
2 parents 4e8ed0e + f064d58 commit a334abb

File tree

1 file changed

+80
-80
lines changed

1 file changed

+80
-80
lines changed

.pre-commit-config.yaml

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2,83 +2,83 @@ ci:
22
autoupdate_schedule: "quarterly"
33

44
repos:
5-
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v6.0.0
7-
hooks:
8-
- id: check-merge-conflict
9-
- id: trailing-whitespace
10-
- id: end-of-file-fixer
11-
- id: mixed-line-ending
12-
args:
13-
- "--fix=lf"
14-
- repo: https://github.com/python-jsonschema/check-jsonschema
15-
rev: 0.34.0
16-
hooks:
17-
- id: check-github-workflows
18-
- id: check-readthedocs
19-
- repo: https://github.com/asottile/pyupgrade
20-
rev: v3.20.0
21-
hooks:
22-
- id: pyupgrade
23-
args: ["--py39-plus"]
24-
- repo: https://github.com/psf/black-pre-commit-mirror
25-
rev: 25.9.0
26-
hooks:
27-
- id: black
28-
name: "Autoformat python files"
29-
- repo: https://github.com/adamchainz/blacken-docs
30-
rev: 1.20.0
31-
hooks:
32-
- id: blacken-docs
33-
additional_dependencies: ['black==25.1.0']
34-
- repo: https://github.com/PyCQA/flake8
35-
rev: 7.3.0
36-
hooks:
37-
- id: flake8
38-
name: "Lint python files"
39-
additional_dependencies:
40-
- 'flake8-bugbear==24.12.12'
41-
- 'flake8-comprehensions==3.16.0'
42-
- 'flake8-typing-as-t==1.0.0'
43-
- repo: https://github.com/PyCQA/isort
44-
rev: 6.1.0
45-
hooks:
46-
- id: isort
47-
name: "Sort python imports"
48-
- repo: https://github.com/sirosen/rstbebe
49-
rev: 0.2.0
50-
hooks:
51-
- id: bad-backticks
52-
- repo: https://github.com/sirosen/slyp
53-
rev: 0.8.2
54-
hooks:
55-
- id: slyp
56-
- repo: https://github.com/codespell-project/codespell
57-
rev: v2.4.1
58-
hooks:
59-
- id: codespell
60-
args: ["--ignore-regex", "https://[^\\s]*"]
61-
- repo: https://github.com/sirosen/texthooks
62-
rev: 0.7.1
63-
hooks:
64-
- id: alphabetize-codeowners
65-
- repo: https://github.com/rhysd/actionlint
66-
rev: v1.7.7
67-
hooks:
68-
- id: actionlint
69-
additional_dependencies:
70-
- github.com/wasilibs/go-shellcheck/cmd/[email protected]
71-
# custom local hooks
72-
- repo: local
73-
hooks:
74-
- id: forbid-code-block-without-language
75-
name: Require code-block directives to specify a language
76-
types_or: [python,rst]
77-
language: pygrep
78-
entry: "\\.\\. +code-block::$"
79-
- id: ensure-all-exports-documented
80-
name: "Check that all public symbols are documented"
81-
entry: ./scripts/ensure_exports_are_documented.py
82-
language: python
83-
always_run: true
84-
pass_filenames: false
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v6.0.0
7+
hooks:
8+
- id: check-merge-conflict
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
- id: mixed-line-ending
12+
args:
13+
- "--fix=lf"
14+
- repo: https://github.com/python-jsonschema/check-jsonschema
15+
rev: 0.34.0
16+
hooks:
17+
- id: check-github-workflows
18+
- id: check-readthedocs
19+
- repo: https://github.com/asottile/pyupgrade
20+
rev: v3.20.0
21+
hooks:
22+
- id: pyupgrade
23+
args: ["--py39-plus"]
24+
- repo: https://github.com/psf/black-pre-commit-mirror
25+
rev: 25.9.0
26+
hooks:
27+
- id: black
28+
name: "Autoformat python files"
29+
- repo: https://github.com/adamchainz/blacken-docs
30+
rev: 1.20.0
31+
hooks:
32+
- id: blacken-docs
33+
additional_dependencies: ['black==25.1.0']
34+
- repo: https://github.com/PyCQA/flake8
35+
rev: 7.3.0
36+
hooks:
37+
- id: flake8
38+
name: "Lint python files"
39+
additional_dependencies:
40+
- 'flake8-bugbear==24.12.12'
41+
- 'flake8-comprehensions==3.16.0'
42+
- 'flake8-typing-as-t==1.0.0'
43+
- repo: https://github.com/PyCQA/isort
44+
rev: 6.1.0
45+
hooks:
46+
- id: isort
47+
name: "Sort python imports"
48+
- repo: https://github.com/sirosen/rstbebe
49+
rev: 0.2.0
50+
hooks:
51+
- id: bad-backticks
52+
- repo: https://github.com/sirosen/slyp
53+
rev: 0.8.2
54+
hooks:
55+
- id: slyp
56+
- repo: https://github.com/codespell-project/codespell
57+
rev: v2.4.1
58+
hooks:
59+
- id: codespell
60+
args: ["--ignore-regex", "https://[^\\s]*"]
61+
- repo: https://github.com/sirosen/texthooks
62+
rev: 0.7.1
63+
hooks:
64+
- id: alphabetize-codeowners
65+
- repo: https://github.com/rhysd/actionlint
66+
rev: v1.7.7
67+
hooks:
68+
- id: actionlint
69+
additional_dependencies:
70+
- github.com/wasilibs/go-shellcheck/cmd/[email protected]
71+
# custom local hooks
72+
- repo: local
73+
hooks:
74+
- id: forbid-code-block-without-language
75+
name: Require code-block directives to specify a language
76+
types_or: [python,rst]
77+
language: pygrep
78+
entry: "\\.\\. +code-block::$"
79+
- id: ensure-all-exports-documented
80+
name: "Check that all public symbols are documented"
81+
entry: ./scripts/ensure_exports_are_documented.py
82+
language: python
83+
always_run: true
84+
pass_filenames: false

0 commit comments

Comments
 (0)