-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (42 loc) · 1.11 KB
/
.pre-commit-config.yaml
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
repos:
# Syntax check with pre-commit out-of-the-box hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: detect-private-key
- id: requirements-txt-fixer
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --no-sort-keys]
# Source code spell checker
- repo: https://github.com/crate-ci/typos
rev: dictgen-v0.3.1
hooks:
- id: typos
# Format YAML & TOML files prettily
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
# Static type checker
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.391
hooks:
- id: pyright
# Vulture finds unused code
- repo: https://github.com/jendrikseipp/vulture
rev: v2.14
hooks:
- id: vulture
# An extremely fast Python linter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.9.1
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format