-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
58 lines (51 loc) · 1.47 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
files: ".+\\.py"
- id: debug-statements
- id: trailing-whitespace
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: check-docstring-first
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: detect-private-key
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 23.9.1 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pycqa/pylint
rev: v3.0.0a7
hooks:
- id: pylint
# - repo: local
# hooks:
# - id: prospector
# name: Python quality check
# entry: prospector
# language: python
# types: [ python ]
# exclude: ".*/tests/.*"
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.290'
hooks:
- id: ruff
args: [--exit-non-zero-on-fix] # don't use --fix as it corrupts the files
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout