Debian Codegraph @

.pre-commit-config.yaml

raw symbols SCIP
1 # See https://pre-commit.com for more information
2 # See https://pre-commit.com/hooks.html for more hooks
3
4 .python-linters: &python-linters
5 pass_filenames: false
6 fail_fast: true
7 language: system
8 types: [python]
9
10 repos:
11 - repo: https://github.com/pre-commit/pre-commit-hooks
12 rev: v6.0.0
13 hooks:
14 - id: check-ast
15 fail_fast: true
16 - id: trailing-whitespace
17 - id: check-toml
18 fail_fast: true
19 - id: end-of-file-fixer
20 fail_fast: true
21
22 - repo: https://github.com/asottile/add-trailing-comma
23 rev: v3.2.0
24 hooks:
25 - id: add-trailing-comma
26 fail_fast: true
27
28 - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
29 rev: v2.15.0
30 hooks:
31 - id: pretty-format-yaml
32 fail_fast: true
33 args:
34 - --autofix
35 - --preserve-quotes
36 - --indent=2
37
38 - repo: local
39 hooks:
40 - <<: *python-linters
41 id: ruff format
42 name: Format with ruff
43 entry: ruff
44 args: ["format", "."]
45
46 - <<: *python-linters
47 id: ruff
48 name: Check with ruff
49 entry: ruff
50 args: ["check", "--fix", "."]
51
52 - <<: *python-linters
53 id: mypy
54 name: Type check with mypy
55 entry: mypy