-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (44 loc) · 1.5 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (44 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
default_language_version:
python: "python3.12"
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v5.0.0"
hooks:
- id: "check-added-large-files"
- id: "check-vcs-permalinks"
- id: "end-of-file-fixer"
- repo: "https://github.com/charliermarsh/ruff-pre-commit"
rev: "v0.9.9"
hooks:
- id: "ruff"
# NOTE: "--exit-non-zero-on-fix" is important for CI to function
# correctly!
args:
["--fix", "--exit-non-zero-on-fix", "--verbose", "--line-length=88"]
- repo: "https://github.com/psf/black"
rev: "25.1.0"
hooks:
- id: "black"
- repo: "https://github.com/jendrikseipp/vulture"
rev: "v2.14"
hooks:
- id: "vulture"
args:
# Ignore flask routes that we define with the `@api.route` decorator.
- "--ignore-decorators"
- "@api.route"
# Ignore names of attrs in a ctx object in python_script.py that
# vulture incorrectly believes are unused.
# Also ignore typechecker imports in reverse_proxy.py.
- "--ignore-names"
- "check_hostname,verify_mode,StartResponse,WSGIApplication,WSGIEnvironment,api_root"
- repo: https://github.com/codespell-project/codespell
rev: "v2.4.1"
hooks:
- id: codespell
- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.5.2"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
args: [--prose-wrap=always]