-
Notifications
You must be signed in to change notification settings - Fork 18
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.48 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
args:
- --ignore-words-list=hass,alot,datas,dof,dur,farenheit,hist,iff,ines,ist,lightsensor,mut,nd,pres,referer,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing
- "--skip=./.*,*.csv,*.json,src/myPyllant/tests/data/*"
- --quiet-level=2
exclude_types: [ csv, json ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-executables-have-shebangs
- id: check-json
- repo: local
hooks:
- id: update-sample
name: update-sample
entry: python src/myPyllant/tests/update_sample.py
language: python
pass_filenames: false
- repo: local
hooks:
- id: mypy
name: mypy
entry: run_venv.sh
args:
- mypy
- --pretty
- --show-error-codes
- --show-error-context
- --check-untyped-defs
language: script
pass_filenames: true
files: ^src/.+\.py$
exclude: ^src/myPyllant/tests/
- id: pytest
name: pytest
entry: run_venv.sh
args:
- pytest
- --no-cov
- -n4
language: script
pass_filenames: false
files: ^src/.+\.(py|json|yaml)$