forked from nvaccess/nvda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (46 loc) · 1.34 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# Checks python syntax
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
# Ruff preserves indent/new-line formatting of function arguments, list items, and similar iterables,
# if a trailing comma is added.
# This adds a trailing comma to args/iterable items in case it was missed.
- id: add-trailing-comma
- repo: https://github.com/astral-sh/ruff-pre-commit
# Matches Ruff version in requirements.
rev: v0.5.0
hooks:
- id: ruff
name: lint with ruff
args: [ --fix ]
- id: ruff-format
name: format with ruff
- repo: local
hooks:
- id: checkPot
name: translation string check
entry: cmd.exe /c "scons checkPot -j 4"
language: system
pass_filenames: false
types: [python, pofile]
- id: unitTest
name: unit tests
entry: ./rununittests.bat
language: script
pass_filenames: false
types: [python, c, c++, batch]
- id: licenseCheck
name: Check license compatibility of pip dependencies
files: requirements.txt
entry: ./runlicensecheck.bat
language: script
pass_filenames: false