-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (41 loc) · 1.21 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
fail_fast: true
repos:
- repo: local
hooks:
- id: pylint
name: Local PyLint
language: system
require_serial: true
types:
- python
exclude: "^[^/]*env/|dev-[^/]*/"
entry: pylint -j 0
- id: mypy
name: Local MyPy
language: system
types:
- python
# files: \.py$
exclude: "^[^/]*env/|dev-[^/]*/"
require_serial: true
# entry: ./basic-installer.bash mypy --strict
entry: mypy --strict --show-error-codes --no-warn-unused-ignores
# Main problem: python executable path, used to find the environment is hard
# - repo: https://github.com/pre-commit/mirrors-mypy.git
# rev: v1.2.0
# hooks:
# - id: mypy
# exclude: "^[^/]*env/|dev-[^/]*/"
# require_serial: true
# args: [--strict, --show-error-codes, --no-warn-unused-ignores, --python-executable, .pyWEenv/bin/python]
# - repo: meta
- repo: https://github.com/jmfernandez/pre-commit_mirrors-actionlint.git
rev: v1.7.1
hooks:
- id: actionlint
- repo: https://github.com/ambv/black.git
rev: 23.3.0
hooks:
- id: black
exclude: "^[^/]*env/|dev-[^/]*/"
args: [--diff, --check]