forked from C0D3D3V/Moodle-DL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
22 lines (22 loc) · 860 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
22 lines (22 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# See https://pre-commit.com for more information.
# Install the hook with: `uv run pre-commit install`
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.18
hooks:
# Run the linter and autofix what can be fixed.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
# Recompile the GUI .qm catalogs and warn (without modifying the .ts) if the
# code has strings the .ts is missing. Needs the Qt tools (e.g.
# `pip install PySide6`); if absent it warns and skips.
- repo: local
hooks:
- id: compile-translations
name: Compile GUI translation catalogs (.qm) and check for missing strings
entry: python scripts/compile_translations.py
language: system
pass_filenames: false
files: ^moodle_dl/gui/.*\.py$|^moodle_dl/gui/i18n/.*\.ts$