-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.13 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
---
# UPDATE: `pre-commit autoupdate`
default_language_version:
python: python3.11
exclude: "secrets.yml$"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
# Generall Stuff
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
# VCS
- id: check-merge-conflict
# Config / Data Files
- id: check-yaml
- id: check-toml
# Python
- id: debug-statements
- id: requirements-txt-fixer
# Prettier (HTML, JS, CSS, Markdown…)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
exclude: ".*\\.(ya?ml|py)$"
# Python: check syntax via flakehell
- repo: https://github.com/pycqa/flake8
rev: "4.0.1"
hooks:
- id: "flake8"
# Python: reorder imports
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args:
- --force-single-line-imports
# Python: lint with black
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black