-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
63 lines (61 loc) · 1.59 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Install the pre-commit hooks below with
# 'pre-commit install'
# Run the hooks on all files with
# 'pre-commit run --all'
default_stages: [manual, commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
name: check case conflict (files)
- id: end-of-file-fixer
name: EOF fixer
- id: check-added-large-files
name: Check large files
args: ["--maxkb=5120"]
- repo: local
hooks:
- id: black
name: black
entry: black
args: [--config=pyproject.toml]
language: system
types: [ python ]
require_serial: true
- id: flake8
name: flake8
entry: flake8
args: [--config=.flake8]
language: system
types: [ python ]
require_serial: true
- id: isort
name: isort
entry: isort
args: [--settings=pyproject.toml]
language: system
types: [ python ]
require_serial: true
- id: pyupgrade
name: pyupgrade
entry: pyupgrade
args: [--py312-plus]
language: system
types: [ python ]
require_serial: true
- id: pydocstyle
name: pydocstyle
entry: pydocstyle
args: [--config=pyproject.toml]
language: system
types: [ python ]
require_serial: true
- id: mypy
name: mypy
exclude: ".*/tests/.*"
entry: mypy
args: [--config-file=pyproject.toml]
language: system
types: [ python ]
require_serial: true