-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
61 lines (61 loc) · 1.58 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
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: requirements-txt-fixer
name: Requirements
types: [file]
exclude_types: ['image']
- id: debug-statements
name: Debugging
language: python
types: [file, python]
exclude_types: ['image']
- id: trailing-whitespace
name: Trailing Whitespace
language: python
types: [file]
exclude_types: ['image']
- id: end-of-file-fixer
name: EOF Newlines
language: python
types: [file]
exclude_types: ['image']
- id: check-yaml
name: YAML Structure
language: python
- id: check-toml
name: TOML Structure
- id: check-merge-conflict
name: Merge Conflicts
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: Black Formatting
language: python
types: [file, python]
args: [--line-length=100]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
name: flake8 Formatting
language: python
types: [file, python]
args: [--max-line-length=100, --ignore=E203 E301 E302 E501 E402 E704 W503 W504]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort Formatting
language: python
types: [file, python]
ci:
autoupdate_branch: "main"
autofix_prs: true
autoupdate_commit_msg: "ci: weekly check."
autoupdate_schedule: weekly
autofix_commit_msg: "ci: correct from checks."