-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
.pre-commit-config.yaml
33 lines (33 loc) · 1.04 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
# to run pre-commit on demand using below configuration:
# pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-ast
- id: end-of-file-fixer
exclude: ^tests/|^docs/|.*txt$|.*rst$|.*svg$
- id: trailing-whitespace
exclude: ^tests/|.+/diagrams/.+\.py$
- id: check-added-large-files
args: ['--maxkb=5000']
exclude: ^tests/
# black
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
exclude: ^tests/|^docs/|gitignore|README|LICENSE|.*txt|.*rst|.*svg$
args:
- "--line-length=88"
# pylint, to run it directly use: python3 -m pylint . --rcfile=pylintrc
# enabled only spelling checks for docstrings and docs
- repo: local
hooks:
- id: pylint
name: pylint
language: system
entry: pylint .
exclude: ^tests/|^docs/|gitignore|README|LICENSE|pylintrc|pre-commit-config|.*svg|.*gif|.*png$
args:
- "--rcfile=pylintrc"