-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
38 lines (37 loc) · 1022 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
37
38
default_stages: [pre-commit] # All hooks that do not specify any stages are set to `commit` by default
repos:
# Generic Hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: generate-readme-graphs
name: generate-readme-graphs
entry: tox -e generate-readme-graphs --
language: system
types: [python]
- id: black
name: black
entry: tox -e black-run --
language: system
types: [python]
- id: ruff
name: ruff-fix
entry: tox -e ruff-fix --
language: system
types: [python]
- id: mypy
name: mypy
entry: tox -e mypy --
language: system
types: [python]