Debian Codegraph @

.pre-commit-config.yaml

raw
1 repos:
2 - repo: https://github.com/pre-commit/pre-commit-hooks
3 rev: v4.6.0
4 hooks:
5 - id: check-toml
6 - id: check-yaml
7 - id: end-of-file-fixer
8 - id: trailing-whitespace
9 - id: mixed-line-ending
10 - id: file-contents-sorter
11 files: docs/spelling_wordlist.txt
12 - repo: https://github.com/pycqa/doc8
13 rev: v1.1.1
14 hooks:
15 - id: doc8
16 - repo: https://github.com/adamchainz/django-upgrade
17 rev: 1.20.0
18 hooks:
19 - id: django-upgrade
20 args: [--target-version, "4.2"]
21 - repo: https://github.com/pre-commit/pygrep-hooks
22 rev: v1.10.0
23 hooks:
24 - id: rst-backticks
25 - id: rst-directive-colons
26 - repo: https://github.com/pre-commit/mirrors-prettier
27 rev: v4.0.0-alpha.8
28 hooks:
29 - id: prettier
30 entry: env PRETTIER_LEGACY_CLI=1 prettier
31 types_or: [javascript, css]
32 args:
33 - --trailing-comma=es5
34 - repo: https://github.com/pre-commit/mirrors-eslint
35 rev: v9.8.0
36 hooks:
37 - id: eslint
38 additional_dependencies:
39 - "[email protected]"
40 - "@eslint/[email protected]"
41 - "globals"
42 files: \.js?$
43 types: [file]
44 args:
45 - --fix
46 - repo: https://github.com/astral-sh/ruff-pre-commit
47 rev: 'v0.5.5'
48 hooks:
49 - id: ruff
50 args: [--fix, --exit-non-zero-on-fix]
51 - id: ruff-format
52 - repo: https://github.com/tox-dev/pyproject-fmt
53 rev: 2.1.4
54 hooks:
55 - id: pyproject-fmt
56 - repo: https://github.com/abravalheri/validate-pyproject
57 rev: v0.18
58 hooks:
59 - id: validate-pyproject