Sync Changelog entries between branches
[qBittorrent.git] / .pre-commit-config.yaml
blobced7adbf54b08fb04920b1bc3b4ec94c9841289d
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         types_or:
9           - ts
11   - repo: https://github.com/pre-commit/pre-commit-hooks.git
12     rev: v4.0.1
13     hooks:
14     - id: check-json
15       name: Check JSON files
17     - id: check-yaml
18       name: Check YAML files
20     - id: fix-byte-order-marker
21       name: Check file encoding (UTF-8 without BOM)
22       exclude: |
23         (?x)^(
24           src/base/unicodestrings.h
25         )$
27     - id: mixed-line-ending
28       name: Check line ending character (LF)
29       args: ["--fix=lf"]
30       exclude: |
31         (?x)^(
32           compile_commands.json |
33           src/webui/www/private/scripts/lib/.*
34         )$
36     - id: end-of-file-fixer
37       name: Check trailing newlines
38       exclude: |
39         (?x)^(
40           compile_commands.json |
41           configure |
42           src/webui/www/private/scripts/lib/.*
43         )$
44       exclude_types:
45         - svg
46         - ts
48     - id: trailing-whitespace
49       name: Check trailing whitespaces
50       exclude: |
51         (?x)^(
52           src/webui/www/private/scripts/lib/.*
53         )$
54       exclude_types:
55         - ts