-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.pre-commit-config.yaml
66 lines (64 loc) · 1.69 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
59
60
61
62
63
64
65
66
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0
hooks:
- id: autoflake
args:
- --in-place
- --remove-all-unused-imports
- hooks:
- args: [--safe, --quiet]
files: ^((pyisy|examples)/.+)?[^/]+\.py$
id: black
repo: https://github.com/psf/black
rev: 22.12.0
- hooks:
- args:
[
"--ignore-words-list=pyisy,hass,isy,nid,dof,dfof,don,dfon,tim,automic,automicus,BATLVL,homeassistant,colorlog,nd",
'--skip="./.*,*.json"',
--quiet-level=2,
]
exclude_types: [json]
id: codespell
repo: https://github.com/codespell-project/codespell
rev: v2.2.2
- hooks:
- additional_dependencies:
- pycodestyle==2.10.0
- pyflakes==3.0.1
- flake8-docstrings==1.6.0
- pydocstyle==6.1.1
- flake8-comprehensions==3.10.1
- flake8-noqa==1.3.0
- mccabe==0.7.0
files: ^(pyisy)/.+\.py$
id: flake8
repo: https://github.com/pycqa/flake8
rev: 6.0.0
- hooks:
- id: isort
repo: https://github.com/PyCQA/isort
rev: 5.12.0
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
hooks:
- id: prettier
- repo: local
hooks:
- id: pylint
name: pylint
entry: python3 -m pylint -j 0
language: system
types: [python]
files: ^pyisy/.+\.py$
args: ["-rn", "-sn"]