-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 990 Bytes
/
.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
exclude: (^.idea/|^notebooks/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
types: [ python ]
- repo: local
hooks:
- id: ruff
name: ruff
language: system
types: [ python ]
entry: ruff
require_serial: true
args: [ 'check', '--fix']
- id: autoflake
name: autoflake
language: system
types: [ python ]
entry: autoflake
require_serial: true
args: [ '--in-place', '--remove-all-unused-imports', '--ignore-init-module-imports']
- id: black
name: black
language: system
types: [python]
require_serial: true
entry: black
- id: mypy
name: mypy
language: system
types: [ python ]
entry: mypy
require_serial: true
args: [ --strict, --python-version=3.12, --show-error-codes, --allow-untyped-decorators ]