2024-03-13 23:18:15 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
rev: v0.2.1
|
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
args:
|
|
|
|
- --fix
|
|
|
|
- --line-length=127
|
2024-06-26 22:47:20 +02:00
|
|
|
files: ^((.github/scripts|scripts)/.+)?[^/]+\.py$
|
|
|
|
exclude: (split_photos.py)
|
2024-03-13 23:18:15 +01:00
|
|
|
- id: ruff-format
|
2024-06-26 22:47:20 +02: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.2.6
|
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
args:
|
|
|
|
- --ignore-words-list=
|
|
|
|
- --skip="./.*,*.csv,*.json,*.ambr"
|
|
|
|
- --quiet-level=2
|
|
|
|
files: \.(properties|html|css|js|py|md)$
|
|
|
|
exclude: (.vscode|.devcontainer|src/main/resources|Dockerfile)
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: check-duplicate-properties-keys
|
|
|
|
name: Check Duplicate Properties Keys
|
|
|
|
entry: python .github/scripts/check_duplicates.py
|
|
|
|
language: python
|
|
|
|
files: ^(src)/.+\.properties$
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: check-html-tabs
|
|
|
|
name: Check HTML for tabs
|
|
|
|
# args: ["--replace_with= "]
|
|
|
|
entry: python .github/scripts/check_tabulator.py
|
|
|
|
language: python
|
2024-06-26 22:47:20 +02:00
|
|
|
exclude: ^(src/main/resources/static/pdfjs|src/main/resources/static/pdfjs-legacy)
|
2024-03-13 23:18:15 +01:00
|
|
|
files: ^.*(\.html|\.css|\.js)$
|
2024-12-21 13:35:38 +01:00
|
|
|
# - repo: https://github.com/gherynos/pre-commit-java
|
|
|
|
# rev: v0.2.4
|
|
|
|
# hooks:
|
|
|
|
# - id: Checkstyle
|
2024-12-21 13:28:35 +01:00
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
|
|
rev: v8.16.3
|
|
|
|
hooks:
|
|
|
|
- id: gitleaks
|
|
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
|
|
|
rev: 3.0.0
|
|
|
|
hooks:
|
2024-12-21 13:50:03 +01:00
|
|
|
- id: shellcheck
|
2024-12-21 13:35:38 +01:00
|
|
|
# - repo: https://github.com/pre-commit/mirrors-eslint
|
|
|
|
# rev: v8.38.0
|
|
|
|
# hooks:
|
|
|
|
# - id: eslint
|
2024-12-21 13:28:35 +01:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.4.0
|
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2024-12-21 13:35:38 +01:00
|
|
|
# - repo: https://github.com/pylint-dev/pylint
|
|
|
|
# rev: v2.17.2
|
|
|
|
# hooks:
|
|
|
|
# - id: pylint
|