-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy path.pre-commit-config.yaml
60 lines (59 loc) · 1.62 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.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', 'binary', 'executable']
- id: end-of-file-fixer
name: EOF Newlines
language: python
types: [file]
exclude_types: ['image', 'binary', 'executable']
- id: check-yaml
name: YAML Structure
language: python
args: ['--unsafe']
- id: check-toml
name: TOML Structure
- id: check-merge-conflict
name: Merge Conflicts
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.4.3'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
language: python
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
name: Black Formatting
language: python
types: [ file, python ]
# - repo: https://github.com/pycqa/isort
# rev: 5.11.4
# hooks:
# - id: isort
# name: isort Formatting
# language: python
# types: [file, python]
default_language_version:
python: python3.10
ci:
autoupdate_branch: "unstable"
autofix_prs: true
autoupdate_commit_msg: "ci: weekly check."
autoupdate_schedule: weekly
autofix_commit_msg: "ci: correct from checks."