| 1 |
# Install pre-commit hook |
| 2 |
# pre-commit install |
| 3 |
# Apply to all files without committing: |
| 4 |
# pre-commit run --all-files |
| 5 |
# Update this file: |
| 6 |
# pre-commit autoupdate |
| 7 |
repos: |
| 8 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 9 |
rev: v4.4.0 |
| 10 |
hooks: |
| 11 |
- id: check-case-conflict |
| 12 |
- id: check-toml |
| 13 |
- id: check-yaml |
| 14 |
- id: detect-private-key |
| 15 |
- id: end-of-file-fixer |
| 16 |
- id: mixed-line-ending |
| 17 |
- id: trailing-whitespace |
| 18 |
- repo: local |
| 19 |
hooks: |
| 20 |
- id: system |
| 21 |
name: ruff |
| 22 |
entry: uv run ruff check . --fix |
| 23 |
pass_filenames: false |
| 24 |
language: system |
| 25 |
types: [python] |
| 26 |
require_serial: true |
| 27 |
- id: system |
| 28 |
name: ruff-format |
| 29 |
entry: uv run ruff format . |
| 30 |
pass_filenames: false |
| 31 |
language: system |
| 32 |
types: [python] |
| 33 |
- id: system |
| 34 |
name: pytest |
| 35 |
entry: uv run pytest --cov --cov-fail-under=100 |
| 36 |
pass_filenames: false |
| 37 |
language: system |
| 38 |
types: [python] |
| 39 |
- id: system |
| 40 |
name: mypy |
| 41 |
entry: uv run mypy censys |
| 42 |
pass_filenames: false |
| 43 |
language: system |
| 44 |
types: [python] |
| 45 |
require_serial: true |