Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2024-03-13 23:18:15 +01:00
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.0
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$
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$
exclude: (split_photos.py)
2024-03-13 23:18:15 +01:00
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
2024-03-13 23:18:15 +01:00
hooks:
- id: codespell
args:
- --ignore-words-list=thirdParty,tabEl,tabEls
2024-03-13 23:18:15 +01:00
- --skip="./.*,*.csv,*.json,*.ambr"
- --quiet-level=2
2025-01-21 12:09:01 +01:00
files: \.(html|css|js|py|md)$
2025-06-09 12:51:41 +01:00
exclude: (.vscode|.devcontainer|stirling-pdf/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.27.2
2024-12-21 15:34:07 +01:00
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/.*$)