forked from netascode/nac-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (42 loc) · 1.35 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
42 lines (42 loc) · 1.35 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
repos:
- repo: local
hooks:
- id: license-headers
name: Check license headers
entry: ./scripts/license-headers.sh
language: script
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
# Kept: Checks not covered by Ruff
- id: check-json
- id: check-yaml
args: ['--unsafe']
- id: check-symlinks
- id: check-merge-conflict
- id: requirements-txt-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.12
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
exclude: 'tests/fixtures/|tests/integration/fixtures/|tests/e2e/fixtures/'
- id: ruff-format
exclude: 'tests/fixtures/|tests/integration/fixtures/|tests/e2e/fixtures/'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.17.1
hooks:
- id: mypy
exclude: 'tests/fixtures/|tests/integration/fixtures/|tests/e2e/fixtures/'
additional_dependencies:
- types-PyYAML>=6.0.12.20250822
- types-aiofiles>=23.2.0.20240623
- types-markdown>=3.8.0.20250809
- types-requests>=2.32.0.20250809
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
hooks:
- id: bandit
args: ['-c', 'pyproject.toml', '-r', 'nac_test/']
exclude: ^tests/