-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (54 loc) · 1.46 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
60 lines (54 loc) · 1.46 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
# General
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-added-large-files
# Data formats
- id: check-yaml
- id: check-json
- id: check-xml
# Python
- id: check-ast
- id: check-docstring-first
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: ["types-cachetools", "pandas-stubs", "types-tqdm"]
- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
hooks:
- id: autopep8
args: ["-i", "-aaa", "--max-line-length", "120", "--ignore", "E402"]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: sort python imports
args: ["--line-length", "120", "--multi-line", "3"]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
name: format python docstrings
args: [--in-place]
- repo: local
hooks:
- id: check-unfinished-todos
name: check for todo's
entry: TODO[-]now
language: pygrep
- repo: local
hooks:
- id: python-unittest
name: run python tests
additional_dependencies: ["vessim[sil] @ git+https://github.com/Impelon/vessim-exp.git@46ffd7cec1dd00ccf6c1487a3493693b1c2ad99d", "flwr[simulation]"]
entry: python -m unittest discover -t code -s code/tests
language: python
types: [python]
pass_filenames: false