-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (40 loc) · 1.07 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
# .pre-commit-config.yaml
# ========================
# pip install pre-commit
# run pre-commit install in repo
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)(
^.bumpversion\.cfg|
.*\.md$
)
- id: no-commit-to-branch
args: [--branch, main, --pattern, "dev/[0-9]+.[0-9]+.[0-9]+"]
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=1000"]
- id: check-ast
- id: debug-statements
- id: requirements-txt-fixer
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: [--config, pyproject.toml]
language_version: python3
types: [python]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
args: [--config, tox.ini]
language_version: python3