Rename isSeed to isFinished to correctly represent its meaning
[qBittorrent.git] / .pre-commit-config.yaml
blob76a59ff436ec647e74790e4d36053aa2a9ed7ca6
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.3.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/css/lib/.* |
38           src/webui/www/private/scripts/lib/.*
39         )$
41     - id: end-of-file-fixer
42       name: Check trailing newlines
43       exclude: |
44         (?x)^(
45           compile_commands.json |
46           configure |
47           src/webui/www/private/css/lib/.* |
48           src/webui/www/private/scripts/lib/.*
49         )$
50       exclude_types:
51         - svg
52         - ts
54     - id: trailing-whitespace
55       name: Check trailing whitespaces
56       exclude: |
57         (?x)^(
58           src/webui/www/private/css/lib/.* |
59           src/webui/www/private/scripts/lib/.*
60         )$
61       exclude_types:
62         - ts