-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
55 lines (55 loc) · 1.71 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
51
52
53
54
55
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: [--preview]
exclude: resources.py
language_version: python3.9
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.3
hooks:
- id: ruff
- repo: local
hooks:
- id: mypy
name: mypy
entry: "./run-mypy.sh"
language: python
language_version: python3.9
# trigger for commits changing Python files
types: [python]
# use require_serial so that script
# is only called once per commit
require_serial: true
# print the number of files as a sanity-check
verbose: true
# the hook is using it's own virtual environment.
# we have to maintain it's dependecies separately!
# make sure to add new dependencies here, otherwise your commits will fail!
additional_dependencies:
- mypy
- pytest
- pyside6
- ingeniamotion
- pytest-mock
- repo: local
hooks:
- id: qmllint
name: qmllint
entry: "python ./qmllinting.py"
language: python
language_version: python3.9
# trigger for commits changing Python files
types: [python]
# use require_serial so that script
# is only called once per commit
require_serial: true
# print the number of files as a sanity-check
verbose: true
# the hook is using it's own virtual environment.
# we have to maintain it's dependecies separately!
# make sure to add new dependencies here, otherwise your commits will fail!
additional_dependencies:
- pyside6