forked from LiberTEM/LiberTEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (36 loc) · 949 Bytes
/
.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
files: ^src/
exclude: ^src/libertem/web/client/
- id: end-of-file-fixer
files: ^src/
exclude: ^src/libertem/web/client/
- id: check-yaml
- id: check-added-large-files
exclude: ^src/libertem/web/client/assets
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
exclude: ^prototypes/
# pyroma failing in CI due to missing deps
# - repo: https://github.com/regebro/pyroma
# rev: "4.2"
# hooks:
# - id: pyroma
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
- id: pyupgrade
args: ["--py39-plus"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
verbose: true
entry: python ./scripts/run_mypy.py