-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (30 loc) · 1.18 KB
/
.pre-commit-config.yaml
File metadata and controls
32 lines (30 loc) · 1.18 KB
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
default_language_version:
# force all unspecified python hooks to run python3
python: python3.8
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-docstring-first # checks if docstring is before code
- id: check-json # checks if json files are valid
- id: check-added-large-files # checks if large files were added
- id: check-merge-conflict # checks if all merge conflicts were resolved
- id: check-yaml # checks if yaml files are valid
- id: debug-statements # checks if debug statements are to be commited
- id: end-of-file-fixer # fixes missing line ending in end of file
exclude: |
(?x)^(
tests/unit/data/.*
)$
- id: mixed-line-ending # fixes line files line ending
args: [--fix=lf]
- id: trailing-whitespace # removes trailing whitespaces from text files
- repo: https://github.com/ambv/black # formats Python code
rev: 23.7.0
hooks:
- id: black
args: [--line-length=100]
- repo: https://github.com/pycqa/pylint
rev: v2.17.5
hooks:
- id: pylint