2025-06-27 09:42:35 +02:00
|
|
|
default_stages: [pre-commit, pre-push]
|
2023-12-19 23:58:57 +01:00
|
|
|
|
|
|
|
|
repos:
|
2024-01-12 10:55:40 +01:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-01-12 11:12:47 +01:00
|
|
|
rev: "v4.5.0"
|
2024-01-12 10:55:40 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: check-case-conflict
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-toml
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
- id: end-of-file-fixer
|
2025-11-30 15:37:32 +01:00
|
|
|
exclude: LICENSE
|
2024-01-12 10:55:40 +01:00
|
|
|
- id: trailing-whitespace
|
2023-12-19 23:58:57 +01:00
|
|
|
|
|
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
2024-01-12 11:12:47 +01:00
|
|
|
rev: "v0.1.12"
|
2023-12-19 23:58:57 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: ruff
|
|
|
|
|
|
2024-01-12 10:47:17 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2024-01-12 11:12:47 +01:00
|
|
|
rev: "v3.1.0"
|
2024-01-12 10:47:17 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: prettier
|
2025-12-04 12:03:31 +01:00
|
|
|
files: "docs/(?:index|modules|missing_metadata|delimiters_category|feature_hover_info|gui_refactoring|refactor_settings_ui|testing_summary|ui_styles)\\.md"
|
2024-01-12 10:47:17 +01:00
|
|
|
|
2025-07-01 08:04:08 +02:00
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: pyupgrade
|
|
|
|
|
name: pyupgrade
|
|
|
|
|
entry: poetry run pyupgrade --py312-plus
|
|
|
|
|
types: [python]
|
|
|
|
|
language: system
|
2024-01-12 10:55:40 +01:00
|
|
|
|
2024-01-12 11:12:47 +01:00
|
|
|
# Disabled du to conflicts with black and I like the style of black more.
|
|
|
|
|
# - repo: local
|
|
|
|
|
# hooks:
|
|
|
|
|
# - id: isort
|
|
|
|
|
# name: isort
|
|
|
|
|
# entry: poetry run isort --settings-path pyproject.toml
|
|
|
|
|
# types: [python]
|
|
|
|
|
# language: system
|
2024-01-12 10:55:40 +01:00
|
|
|
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: black
|
|
|
|
|
name: black
|
|
|
|
|
entry: poetry run black --config pyproject.toml
|
|
|
|
|
types: [python]
|
|
|
|
|
language: system
|
2024-01-12 13:24:49 +01:00
|
|
|
# TODO: Use https://github.com/pre-commit/mirrors-mypy
|