-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (47 loc) · 1.02 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (47 loc) · 1.02 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
51
52
exclude: '^docs/conf.py'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: mixed-line-ending
args: ['--fix=auto']
- repo: local
hooks:
- id: isort
name: isort
language: system
entry: uv run isort .
require_serial: true
types_or: [cython, pyi, python]
- repo: local
hooks:
- id: black
name: black (code formatting)
language: system
entry: uv run black
types: [python]
- repo: local
hooks:
- id: flake8
name: flake8 (code linting)
language: system
entry: uv run flake8
types: [python]
- repo: local
hooks:
- id: mypy
name: mypy (static typing)
pass_filenames: false
language: system
entry: uv run poe type-check
verbose: true