Debian Codegraph @

.pre-commit-config.yaml

raw symbols SCIP
1 ---
2 repos:
3 - repo: local
4 hooks:
5 - id: blacken-docs
6 name: â˜•ī¸ Format documentation using black
7 language: system
8 files: '\.(rst|md|markdown|py|tex)$'
9 entry: poetry run blacken-docs
10 require_serial: true
11 - id: check-ast
12 name: 🐍 Checking Python AST
13 language: system
14 types: [python]
15 entry: poetry run check-ast
16 - id: check-case-conflict
17 name: 🔠 Checking for case conflicts
18 language: system
19 entry: poetry run check-case-conflict
20 - id: check-docstring-first
21 name: â„šī¸ Checking docstrings are first
22 language: system
23 types: [python]
24 entry: poetry run check-docstring-first
25 - id: check-executables-have-shebangs
26 name: 🧐 Checking that executables have shebangs
27 language: system
28 types: [text, executable]
29 entry: poetry run check-executables-have-shebangs
30 stages: [pre-commit, pre-push, manual]
31 - id: check-json
32 name: īŊ› Checking JSON files
33 language: system
34 types: [json]
35 entry: poetry run check-json
36 - id: check-merge-conflict
37 name: đŸ’Ĩ Checking for merge conflicts
38 language: system
39 types: [text]
40 entry: poetry run check-merge-conflict
41 - id: check-symlinks
42 name: 🔗 Checking for broken symlinks
43 language: system
44 types: [symlink]
45 entry: poetry run check-symlinks
46 - id: check-toml
47 name: ✅ Checking TOML files
48 language: system
49 types: [toml]
50 entry: poetry run check-toml
51 - id: check-yaml
52 name: ✅ Checking YAML files
53 language: system
54 types: [yaml]
55 entry: poetry run check-yaml
56 - id: codespell
57 name: ✅ Checking code for misspellings
58 language: system
59 types: [text]
60 exclude: ^poetry\.lock$
61 entry: poetry run codespell
62 - id: debug-statements
63 name: đŸĒĩ Checking for debug statements and imports (Python)
64 language: system
65 types: [python]
66 entry: poetry run debug-statement-hook
67 - id: detect-private-key
68 name: đŸ•ĩī¸ Detecting private keys
69 language: system
70 types: [text]
71 entry: poetry run detect-private-key
72 - id: end-of-file-fixer
73 name: 🔚 Checking end of files
74 language: system
75 types: [text]
76 entry: poetry run end-of-file-fixer
77 stages: [pre-commit, pre-push, manual]
78 - id: fix-byte-order-marker
79 name: 🚏 Checking UTF-8 byte order marker
80 language: system
81 types: [text]
82 entry: poetry run fix-byte-order-marker
83 - id: format
84 name: â˜•ī¸ Formatting code using ruff
85 language: system
86 types: [python]
87 entry: poetry run ruff format
88 - id: isort
89 name: 🔀 Sorting all imports with isort
90 language: system
91 types: [python]
92 entry: poetry run isort
93 - id: mypy
94 name: 🆎 Performing static type checking using mypy
95 language: system
96 types: [python]
97 entry: poetry run mypy
98 exclude: ^vulture_whitelist.py$
99 require_serial: true
100 - id: no-commit-to-branch
101 name: 🛑 Checking for commit to protected branch
102 language: system
103 entry: poetry run no-commit-to-branch
104 pass_filenames: false
105 always_run: true
106 args:
107 - --branch=dev
108 - --branch=main
109 - id: poetry
110 name: 📜 Checking pyproject with Poetry
111 language: system
112 entry: poetry check
113 pass_filenames: false
114 always_run: true
115 - id: pylint
116 name: 🌟 Starring code with pylint
117 language: system
118 types: [python]
119 entry: poetry run pylint
120 exclude: ^vulture_whitelist.py$
121 - id: pyupgrade
122 name: 🆙 Checking for upgradable syntax with pyupgrade
123 language: system
124 types: [python]
125 entry: poetry run pyupgrade
126 args: [--py39-plus, --keep-runtime-typing]
127 - id: ruff
128 name: 👔 Enforcing style guide with ruff
129 language: system
130 types: [python]
131 entry: poetry run ruff check --fix
132 exclude: ^vulture_whitelist.py$
133 - id: trailing-whitespace
134 name: ✄ Trimming trailing whitespace
135 language: system
136 types: [text]
137 entry: poetry run trailing-whitespace-fixer
138 stages: [pre-commit, pre-push, manual]
139 - id: vulture
140 name: 🔍 Finding unused Python code with Vulture
141 language: system
142 types: [python]
143 entry: poetry run vulture vulture_whitelist.py
144 pass_filenames: false
145 require_serial: true
146 - id: yamllint
147 name: 🎗 Checking YAML files with yamllint
148 language: system
149 types: [yaml]
150 entry: poetry run yamllint
151
152 - repo: https://github.com/pre-commit/mirrors-prettier
153 rev: "v3.0.0-alpha.4"
154 hooks:
155 - id: prettier
156 name: 💄 Ensuring files are prettier