2024-03-13 23:18:15 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2024-12-21 15:34:07 +01:00
|
|
|
rev: v0.8.4
|
2024-03-13 23:18:15 +01:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
args:
|
|
|
|
- --fix
|
|
|
|
- --line-length=127
|
2025-01-21 12:09:01 +01:00
|
|
|
files: ^((\.github/scripts|scripts)/.+)?[^/]+\.py$
|
2024-06-26 22:47:20 +02:00
|
|
|
exclude: (split_photos.py)
|
2024-03-13 23:18:15 +01:00
|
|
|
- id: ruff-format
|
2025-01-21 12:09:01 +01:00
|
|
|
files: ^((\.github/scripts|scripts)/.+)?[^/]+\.py$
|
2024-06-26 22:47:20 +02:00
|
|
|
exclude: (split_photos.py)
|
2024-03-13 23:18:15 +01:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2024-12-21 15:34:07 +01:00
|
|
|
rev: v2.3.0
|
2024-03-13 23:18:15 +01:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
args:
|
|
|
|
- --ignore-words-list=
|
|
|
|
- --skip="./.*,*.csv,*.json,*.ambr"
|
|
|
|
- --quiet-level=2
|
2025-01-21 12:09:01 +01:00
|
|
|
files: \.(html|css|js|py|md)$
|
2025-01-10 12:25:23 +01:00
|
|
|
exclude: (.vscode|.devcontainer|src/main/resources|Dockerfile|.*/pdfjs.*|.*/thirdParty.*|bootstrap.*|.*\.min\..*|.*diff\.js)
|
2024-12-21 15:34:07 +01:00
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
|
|
rev: v8.22.0
|
|
|
|
hooks:
|
|
|
|
- id: gitleaks
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v5.0.0
|
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
files: ^.*(\.js|\.java|\.py|\.yml)$
|
2025-01-21 12:09:01 +01:00
|
|
|
exclude: ^(.*/pdfjs.*|.*/thirdParty.*|bootstrap.*|.*\.min\..*|.*diff\.js|\.github/workflows/.*$)
|
2024-12-21 15:34:07 +01:00
|
|
|
- id: trailing-whitespace
|
|
|
|
files: ^.*(\.js|\.java|\.py|\.yml)$
|
2025-01-21 12:09:01 +01:00
|
|
|
exclude: ^(.*/pdfjs.*|.*/thirdParty.*|bootstrap.*|.*\.min\..*|.*diff\.js|\.github/workflows/.*$)
|