2024-03-13 23:18:15 +01:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2026-05-27 00:26:20 +02:00
|
|
|
rev: v0.15.14
|
2024-03-13 23:18:15 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: ruff
|
|
|
|
|
args:
|
|
|
|
|
- --fix
|
|
|
|
|
- --line-length=127
|
2025-07-20 23:21:12 +02:00
|
|
|
files: ^((\.github/scripts|scripts|app/core/src/main/resources/static/python)/.+)?[^/]+\.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-07-20 23:21:12 +02:00
|
|
|
files: ^((\.github/scripts|scripts|app/core/src/main/resources/static/python)/.+)?[^/]+\.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
|
2026-04-23 14:30:35 +02:00
|
|
|
rev: v2.4.2
|
2024-03-13 23:18:15 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: codespell
|
|
|
|
|
args:
|
2026-04-17 10:36:45 +01:00
|
|
|
- --ignore-words-list=thirdParty,tabEl,tabEls,Sie,ist,fulfilment
|
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)$
|
2026-05-22 13:40:34 +01:00
|
|
|
exclude: (.vscode|.devcontainer|app/core/src/main/resources|app/proprietary/src/main/resources|frontend/editor/public/vendor|Dockerfile|.*/pdfjs.*|.*/thirdParty.*|bootstrap.*|.*\.min\..*|.*diff\.js)
|
2024-12-21 15:34:07 +01:00
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
2025-12-28 00:56:57 +01:00
|
|
|
rev: v8.30.0
|
2024-12-21 15:34:07 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: gitleaks
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-12-21 10:40:32 +00:00
|
|
|
rev: v6.0.0
|
2024-12-21 15:34:07 +01:00
|
|
|
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/.*$)
|
2026-02-06 12:09:04 +01:00
|
|
|
- repo: https://github.com/pappasam/toml-sort
|
2026-04-23 14:30:35 +02:00
|
|
|
rev: v0.24.4
|
2026-02-06 12:09:04 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: toml-sort-fix
|
2026-05-22 13:40:34 +01:00
|
|
|
files: frontend/editor/public/locales/.*\.toml$
|
2026-02-06 12:09:04 +01:00
|
|
|
args: ['--in-place', '--all', '--ignore-case']
|
2025-07-14 21:53:11 +02:00
|
|
|
# - repo: https://github.com/thibaudcolas/pre-commit-stylelint
|
|
|
|
|
# rev: v16.21.1
|
|
|
|
|
# hooks:
|
|
|
|
|
# - id: stylelint
|
|
|
|
|
# additional_dependencies:
|
|
|
|
|
# - stylelint@16.21.1
|
|
|
|
|
# - stylelint-config-standard@38.0.0
|
|
|
|
|
# - "@stylistic/stylelint-plugin@3.1.3"
|
|
|
|
|
# files: \.(css)$
|
2025-08-02 23:18:48 +01:00
|
|
|
# args: [--fix]
|