forked from flux-framework/flux-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (41 loc) · 1.12 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
files: '^(src/bindings/python/flux|src/cmd|t/python/.*\.py|t/scripts/.*\.py)'
exclude: "^(src/bindings/python/_flux/|src/bindings/python/flux/utils/|t/python/tap)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: local
hooks:
- id: black
name: black
language: python
types: [python]
entry: black
- id: isort
name: isort
args: [--filter-files]
language: python
types: [python]
entry: isort
- id: flake8
name: flake8
language: python
types: [python]
entry: flake8
- id: mypy
name: mypy
language: python
types: [python]
entry: ./scripts/run_mypy.sh
- repo: https://github.com/netromdk/vermin
rev: v1.5.1
hooks:
- id: vermin
args: ['-t=3.6-', '--violations']