-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
48 lines (48 loc) · 1.54 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
name: Check for newline at end of file
- id: requirements-txt-fixer
name: Sort requirements.txt
- id: fix-byte-order-marker
name: Remove UTF-8 byte order marker (BOM)
- id: mixed-line-ending
name: Fix line endings
args: ['--fix', 'lf']
- id: debug-statements
name: Check for debug/breakpoint statements
- id: trailing-whitespace
name: Check for trailing whitespace
- id: check-merge-conflict
name: Check for merge conflicts
- id: check-docstring-first
name: Ensuring code doesn't come before docstrings
- id: check-ast
name: Check if code parses as valid Python
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
name: Checking for potential passwords
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
hooks:
- id: pyupgrade
name: Upgrade previous versioned Python syntax to newer version
args: ['--py311-plus']
exclude: ^app/pymem # forked module
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: Sort imports
args: ['--multi-line', '3', '--trailing-comma', '--force-alphabetical-sort', '--combine-star', '--skip-gitignore', '--color', '--atomic']
exclude: ^app/pymem # forked module
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
name: Format docstrings
exclude: ^app/pymem # forked module