-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
53 lines (48 loc) · 1.27 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
ci:
autofix_prs: false
skip: [ 'mypy' ]
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: [ "--profile", "black", "-l 79" ]
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
exclude: ".*venv/.*|.*qute_style/gen/.*|resources_rc.py"
args: [ --safe, --quiet, -l 79 ]
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: check-builtin-literals
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: fix-byte-order-marker
- id: no-commit-to-branch
args: [--branch, master]
- id: requirements-txt-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
name: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [ python ]
args: ["--config-file", "dev_config/mypy.ini"]