forked from flux-framework/flux-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (41 loc) · 1.15 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
45 lines (41 loc) · 1.15 KB
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/(modules/.*\.py|bindings/python/flux|broker/.*\.py|cmd)|t/(rc|python|scripts/.*\.py)|etc/)'
exclude: "^(src/bindings/python/_flux/|src/bindings/python/flux/utils/|t/python/tap)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- 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.6.0
hooks:
- id: vermin
args: ['-t=3.6-', '--violations']