-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (36 loc) · 1.21 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (36 loc) · 1.21 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
33
34
35
36
37
38
39
40
fail_fast: true
repos:
- repo: local
hooks:
- id: pyink
name: pyink
entry: poetry run pyink
language: system
types: [file, python]
files: '^smart_control/'
exclude: '^smart_control/Dockerfile'
- id: isort
name: isort
entry: poetry run isort
language: system
types: [file, python]
files: '^smart_control/'
exclude: '^smart_control/proto/'
# NOTE: running `pylint` against all files is prohibitively slow
# ... so we omit passing the `smart_buildings` directory,
# ... which allows pre-commit to run against staged / changed files only
- id: pylint
name: pylint
#entry: pylint --rcfile=.pylintrc --ignore=proto smart_control
#entry: pylint --rcfile=.pylintrc --ignore=proto $(git diff --name-only --staged | grep -E '\.py$')
entry: pylint --rcfile=.pylintrc --ignore=proto
language: system
types: [file, python]
files: '^smart_control/'
exclude: '^smart_control/proto/'
# See: https://mdformat.readthedocs.io/en/stable/users/installation_and_usage.html#usage-as-a-pre-commit-hook
- repo: https://github.com/hukkin/mdformat
rev: 0.7.22
hooks:
- id: mdformat
exclude: ^docs/api/