Debian Codegraph @

.pre-commit-config.yaml

raw symbols SCIP
1 # Learn more about this config here: https://pre-commit.com/
2
3 # To enable these pre-commit hooks run:
4 # `pipx install pre-commit` or `brew install pre-commit`
5 # Then in the project root directory run `pre-commit install`
6
7 repos:
8 - repo: https://github.com/pre-commit/pre-commit-hooks
9 rev: v5.0.0
10 hooks:
11 - id: check-added-large-files
12 - id: check-ast
13 - id: check-builtin-literals
14 - id: check-case-conflict
15 - id: check-docstring-first
16 - id: check-executables-have-shebangs
17 - id: check-json
18 - id: check-merge-conflict
19 - id: check-shebang-scripts-are-executable
20 - id: check-symlinks
21 - id: check-toml
22 - id: check-vcs-permalinks
23 - id: check-xml
24 - id: check-yaml
25 - id: debug-statements
26 - id: destroyed-symlinks
27 - id: detect-private-key
28 # - id: end-of-file-fixer # TODO(cclauss): Causes some tests to fail.
29 - id: file-contents-sorter
30 - id: fix-byte-order-marker
31 - id: forbid-new-submodules
32 - id: forbid-submodules
33 # - id: mixed-line-ending # TODO(cclauss): Causes some tests to fail.
34 # args:
35 # - --fix=lf
36 - id: name-tests-test
37 - id: pretty-format-json
38 - id: requirements-txt-fixer
39 - id: sort-simple-yaml
40 # - id: trailing-whitespace # TODO(cclauss): Causes some tests to fail.
41
42 - repo: https://github.com/MarcoGorelli/auto-walrus
43 rev: 0.3.4
44 hooks:
45 - id: auto-walrus
46
47 - repo: https://github.com/codespell-project/codespell
48 rev: v2.4.1
49 hooks:
50 - id: codespell
51 args:
52 - --ignore-words-list=alse,ons
53 additional_dependencies:
54 - tomli
55
56 - repo: https://github.com/astral-sh/ruff-pre-commit
57 rev: v0.11.4
58 hooks:
59 - id: ruff
60 - id: ruff-format
61
62 - repo: https://github.com/tox-dev/pyproject-fmt
63 rev: v2.5.1
64 hooks:
65 - id: pyproject-fmt
66
67 - repo: https://github.com/abravalheri/validate-pyproject
68 rev: v0.24.1
69 hooks:
70 - id: validate-pyproject