-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (39 loc) · 1.67 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (39 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# See https://pre-commit.com for more information, specially https://pre-commit.com/#pre-commit-run for manual trigger
# Some example useful invocations:
# pre-commit install: this will install the pre-commit hooks in this file.
# pre-commit run: this is what pre-commit runs by default when committing. This will run all hooks against currently staged files.
# pre-commit run --all-files: run all the hooks against all the files. This is a useful invocation if you are using pre-commit in CI.
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell # See pyproject.toml for args
additional_dependencies:
- tomli
# We run BOTH flake8 and ruff-check until we add ruff-format.
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: ruff-check
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.2
hooks:
- id: sphinx-lint
args:
- --disable=backtick-before-role
- --disable=horizontal-tab
- --disable=hyperlink-reference-missing-backtick
- --disable=missing-final-newline
- --disable=missing-space-after-literal
- --disable=missing-space-after-role
- --disable=missing-space-before-default-role
- --disable=missing-space-before-role
- --disable=missing-space-in-hyperlink
- --disable=missing-underscore-after-hyperlink
- --disable=role-without-backticks
- --disable=trailing-whitespace
- --disable=unbalanced-inline-literals-delimiters