-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
56 lines (50 loc) · 1.38 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.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.10.1 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
- 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.1
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.1.4'
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