Debian Codegraph @

.pre-commit-config.yaml

raw
1 repos:
2 - repo: https://github.com/astral-sh/ruff-pre-commit
3 # Ruff version.
4 rev: v0.15.12
5 hooks:
6 # Run the linter.
7 - id: ruff
8 args: [ --fix ]
9 # Run the formatter.
10 - id: ruff-format
11 - repo: local
12 hooks:
13 # Run mypy through our wrapper script in order to get the possible
14 # pyenv and/or virtualenv activated; it may not have been e.g. if
15 # committing from a GUI tool that was not launched from an activated
16 # shell.
17 - id: mypy
18 name: mypy
19 entry: scripts/run-in-env.sh mypy --strict
20 language: script
21 types: [python]
22 require_serial: true
23 files: ^(cookidoo_api|tests|smoke_test)/.+\.py$
24 - repo: https://github.com/igorshubovych/markdownlint-cli
25 rev: v0.48.0
26 hooks:
27 - id: markdownlint
28 args: ["--disable=MD013"]
29 - id: markdownlint-fix
30 args: ["--disable=MD013", "--fix"]