-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (37 loc) · 1.16 KB
/
.pre-commit-config.yaml
File metadata and controls
38 lines (37 loc) · 1.16 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.0
hooks:
# Run the linter
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
# Run the formatter
- id: ruff-format
- repo: https://github.com/PyCQA/bandit
rev: '1.7.9'
hooks:
- id: bandit
additional_dependencies: ['.[toml]']
args: [-c, pyproject.toml, -r, src] # pull config from pyproject.toml and only scan `src`
- repo: https://github.com/python-poetry/poetry
rev: '2.1.2' # add version here
hooks:
- id: poetry-check
- repo: local
hooks:
- id: check-conda-lock
name: check conda-lock
language: system
entry: make check-conda-lock
- id: check-linter-ignore
name: 'Check for non-specific linter ignores'
entry: poetry run python scripts/check_bare_pyright_ignore.py
types: [python]
language: system
exclude: check_bare_pyright_ignore.py|test_check_bare_pyright_ignore.py