-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (56 loc) · 1.67 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
63 lines (56 loc) · 1.67 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
shared-exclude: &shared_exclude ^(calibration-docs/|deployment-reports/|GIS_layers/|echoview-glider-calib-files/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
exclude: *shared_exclude
- id: trailing-whitespace
exclude: *shared_exclude
- id: check-illegal-windows-names
exclude: *shared_exclude
- id: check-added-large-files
exclude: *shared_exclude
- id: check-case-conflict
exclude: *shared_exclude
- id: check-merge-conflict
exclude: *shared_exclude
- id: check-toml
exclude: *shared_exclude
- id: check-json
exclude: *shared_exclude
- id: check-yaml
exclude: *shared_exclude
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
exclude: *shared_exclude
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
exclude: *shared_exclude
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
hooks:
- id: ruff
files: ^deployment-scripts/
types_or: [ python, pyi ]
args: ["--fix", "--show-fixes"]
- id: ruff-format
files: ^deployment-scripts/
types_or: [ python, pyi ]
# - repo: https://github.com/tox-dev/pyproject-fmt
# rev: v2.5.1
# hooks:
# - id: pyproject-fmt
- repo: https://github.com/pycqa/isort
rev: 6.0.1
hooks:
- id: isort
name: isort (python)
exclude: *shared_exclude
# # HOW TO RUN:
# cd glider-lab
# pre-commit run --all-files --verbose