forked from gridstatus/gridstatus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (66 loc) · 1.94 KB
/
.pre-commit-config.yaml
File metadata and controls
66 lines (66 loc) · 1.94 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
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
exclude: ^LICENSE/|\.(html|csv|svg|md)$
default_stages: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
files: ^gridstatus/
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.3
hooks:
- id: add-trailing-comma
name: Add trailing comma
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.10.1
hooks:
- id: validate-pyproject
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.6.8
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
types_or: [ python, jupyter ]
args:
- --config=./pyproject.toml
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
args: ["--config-file=pyproject.toml"]
exclude: >
(?x)^(
docs/.*|
gridstatus/tests/.*|
scripts/.*|
examples/.*|
setup\.py|
gridstatus/__init__\.py|
gridstatus/base\.py|
gridstatus/caiso/caiso\.py|
gridstatus/caiso/caiso_constants\.py|
gridstatus/caiso/caiso_utils\.py|
gridstatus/decorators\.py|
gridstatus/eia\.py|
gridstatus/ercot\.py|
gridstatus/ercot_api/.*|
gridstatus/gs_logging\.py|
gridstatus/ieso\.py|
gridstatus/isone\.py|
gridstatus/isone_api/.*|
gridstatus/lmp_config\.py|
gridstatus/miso\.py|
gridstatus/nyiso\.py|
gridstatus/pjm\.py|
gridstatus/spp\.py|
gridstatus/utils\.py|
gridstatus/version\.py|
gridstatus/viz\.py
)$