-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (50 loc) · 1.77 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
55 lines (50 loc) · 1.77 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
44
45
46
47
48
49
50
51
52
53
54
55
repos:
- hooks:
# Self-hosted: run codesorter from the local checkout rather than a pinned
# release so the repository is always sorted by its own current code.
- entry: codesorter
exclude: ^(examples|tests/test_files)/
id: codesorter
language: system
name: codesorter
require_serial: true
types: [python]
repo: local
- hooks:
- id: docstrfmt
require_serial: true
repo: https://github.com/LilSpazJoekp/docstrfmt
rev: c1813841673cdcd6cf602dde1edb78a5d5e45235 # frozen: v2.2.1
- hooks:
- id: auto-walrus
repo: https://github.com/MarcoGorelli/auto-walrus
rev: 1743edbed52f3d61886b59d98a27164a8af29c0d # frozen: 0.4.1
- hooks:
- args: [ --exit-non-zero-on-fix, --fix ]
id: ruff
- id: ruff-format
repo: https://github.com/astral-sh/ruff-pre-commit
rev: a56c0b927e6465d37cae3e97d35d4d18ab2b96cd # frozen: v0.16.9
- hooks:
- files: ^(.*\.toml)$
id: toml-sort-fix
repo: https://github.com/pappasam/toml-sort
rev: 6bcff12c5d156baa6897ca2a85f6d534af296e7c # frozen: v0.25.0
- hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- args: [ --fix=lf ]
id: mixed-line-ending
- args: [ --pytest-test-first ]
files: ^tests/(integration|unit)/.*\.py$
id: name-tests-test
- id: no-commit-to-branch
- files: ^(\.github/workflows/.*\.ya?ml|\.readthedocs.ya?ml)$
id: sort-simple-yaml
- id: trailing-whitespace
repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0