-
Notifications
You must be signed in to change notification settings - Fork 12
/
.pre-commit-config.yaml
45 lines (42 loc) · 1.13 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
exclude: '^(\.tox|\.env|dist|\.vscode)(/|$)'
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-illegal-windows-names
- id: check-case-conflict
- id: check-merge-conflict
args: [--assume-in-merge]
- id: check-case-conflict
- id: trailing-whitespace
- id: debug-statements
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-added-large-files
args: ["--maxkb=5000"]
- id: check-toml
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- id: debug-statements
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.7.3"
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry run poe test-type
language: system
types: [python]
pass_filenames: false
verbose: true