Debian Codegraph @

.pre-commit-config.yaml

raw
1 exclude: ^tests/refdata/.*
2 repos:
3 - repo: https://github.com/astral-sh/ruff-pre-commit
4 # Ruff version.
5 rev: v0.11.2
6 hooks:
7 # Run the linter.
8 - id: ruff
9 args: [--fix]
10 # Run the formatter.
11 - id: ruff-format
12
13 - repo: https://github.com/pre-commit/pre-commit-hooks
14 rev: v5.0.0
15 hooks:
16 - id: trailing-whitespace
17 - id: end-of-file-fixer
18 - id: check-yaml
19 - id: check-toml
20 - id: check-json
21 - id: check-xml
22 - id: debug-statements
23 - id: check-added-large-files
24 - id: check-merge-conflict
25 - id: mixed-line-ending
26
27 - repo: https://github.com/Lucas-C/pre-commit-hooks
28 rev: v1.5.5
29 hooks:
30 - id: remove-tabs
31 args: [--whitespaces-count, "2"] # defaults to: 4
32 # - id: insert-license
33 # files: \.py$
34 # args:
35 # - --license-filepath
36 # - LICENSE
37 # - --use-current-year
38
39 - repo: https://github.com/codespell-project/codespell
40 rev: v2.4.1
41 hooks:
42 - id: codespell
43 args:
44 - "--write-changes"
45 - "--ignore-words=.codespellignore"
46 additional_dependencies:
47 - tomli
48 exclude: '^uv\.lock$'