-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
35 lines (35 loc) · 1.02 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
repos:
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args: ["--max-line-length=120"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.6.1'
hooks:
- id: mypy
exclude: "test_resources/"
args: ["--strict"]
additional_dependencies: [pyqt6, importlib-resources, pytest]
- repo: https://github.com/python-poetry/poetry
rev: "1.6.0"
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: [ "-f", "requirements.txt", "--without-hashes", "-o", "./requirements.txt" ]
- id: poetry-export
args: [ "-f", "requirements.txt", "--without-hashes", "--with", "dev", "-o", "./requirements-dev.txt" ]
- repo: local
hooks:
- id: pytest-check
name: pytest-check
entry: pytest
language: system
pass_filenames: false
always_run: true