forked from nielsfaber/alarmo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (34 loc) · 1.03 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
37 lines (34 loc) · 1.03 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
repos:
# Pre-commit hooks for essential file checks only
- hooks:
- id: check-yaml
exclude: '\..*_cache/.*|dist/.*|venv/.*'
- id: check-toml
exclude: '\..*_cache/.*|dist/.*|venv/.*'
- id: check-json
exclude: '\..*_cache/.*|dist/.*|venv/.*'
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
# Check for common security issues
- hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
exclude: '^tests/.*|^scripts/.*|\..*_cache/.*|dist/.*|venv/.*'
repo: https://github.com/PyCQA/bandit
rev: 1.8.6
# Ruff for linting and formatting
- hooks:
- id: ruff-check
- id: ruff-format
repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.1
# Run all tests
- hooks:
- id: run-pytest
name: Run pytest tests
entry: uv
language: python
args: ["run", "pytest", "--quiet", "--tb=short", "tests/"]
pass_filenames: false
repo: local