qmake: Use installed Qt's translations for packaging
[qBittorrent.git] / .pre-commit-config.yaml
blobc9263a80ffb144e7e65485ed391eb663adbe1ec4
1 repos:
2   - repo: local
3     hooks:
4       - id: check-translation-tag
5         name: Check newline characters in <translation> tag
6         entry: .github/workflows/check_translation_tag.py
7         language: script
8         exclude: |
9           (?x)^(
10             src/lang/.*
11           )$
12         types_or:
13           - ts
15   - repo: https://github.com/pre-commit/pre-commit-hooks.git
16     rev: v4.1.0
17     hooks:
18     - id: check-json
19       name: Check JSON files
21     - id: check-yaml
22       name: Check YAML files
24     - id: fix-byte-order-marker
25       name: Check file encoding (UTF-8 without BOM)
26       exclude: |
27         (?x)^(
28           src/base/unicodestrings.h
29         )$
31     - id: mixed-line-ending
32       name: Check line ending character (LF)
33       args: ["--fix=lf"]
34       exclude: |
35         (?x)^(
36           compile_commands.json |
37           src/webui/www/private/scripts/lib/.*
38         )$
40     - id: end-of-file-fixer
41       name: Check trailing newlines
42       exclude: |
43         (?x)^(
44           compile_commands.json |
45           configure |
46           src/webui/www/private/scripts/lib/.*
47         )$
48       exclude_types:
49         - svg
50         - ts
52     - id: trailing-whitespace
53       name: Check trailing whitespaces
54       exclude: |
55         (?x)^(
56           src/webui/www/private/scripts/lib/.*
57         )$
58       exclude_types:
59         - ts