-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (47 loc) · 1.83 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (47 loc) · 1.83 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 5ba58aca0bd5bc7c0e1c0fc45af2e88d6a2bde83 # frozen: v0.14.10
hooks:
- id: ruff-check
args: [--select, ALL, --fix] # lint + fix everything
- id: ruff-format # replaces Black + prettier + yamlfmt
# NOTE: Flake8 kept temporarily - review if unique plugins needed
- repo: https://github.com/pycqa/flake8
rev: d93590f5be797aabb60e3b09f2f52dddb02f349f # frozen: 7.3.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-pyproject
- dlint
- repo: https://github.com/pre-commit/mirrors-mypy
rev: a66e98df7b4aeeb3724184b332785976d062b92e # frozen: v1.19.1
hooks:
- id: mypy
exclude: scripts/
additional_dependencies: [types-requests, types-python-dateutil]
- repo: https://github.com/asottile/pyupgrade
rev: 75992aaa40730136014f34227e0135f63fc951b4 # frozen: v3.21.2
hooks:
- id: pyupgrade
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: b035497fb64e3f9faa91e833331688cc185891e6 # frozen: 0.36.0
hooks:
- id: check-github-workflows
args: ['--verbose']
- repo: https://github.com/pre-commit/sync-pre-commit-deps
rev: 8afb59c50a7d9f8197e8fc37d885f7896635735f # frozen: v0.0.3
hooks:
- id: sync-pre-commit-deps
- repo: https://github.com/bridgecrewio/checkov
rev: 9ea6d83d477afb3691795eda79d8f4dd56851d4b # frozen: 3.2.495
hooks:
- id: checkov
args: ['--quiet', '--compact', '--skip-path=^d/']