-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (36 loc) · 983 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
# Would run in parent directory
repos:
# Check YAML; Fix end of files; Fix trailing whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
name: Check Yaml
- id: end-of-file-fixer
name: Fix End of Files
- id: trailing-whitespace
name: Fix Trailing Whitespace
# Python - Reorder Imports
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args:
- --force-single-line-imports
- --lines-after-imports=2
# Python - Code Formatting
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
name: Code Formatter (black)
exclude: hooks/.*
args:
- --line-length=79
# Formatter - General
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: General Formatter