-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
47 lines (40 loc) · 1.29 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
---repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
exclude: ^data_analysis/example_scripts
- repo: local
hooks:
- id: unittest
name: unittest
entry: python -m unittest discover
language: python
types: [python]
pass_filenames: false
stages: [commit]
additional_dependencies: [numpy, scipy, scikit-learn,
scikit-image, matplotlib, PyQt5]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: [--profile, black, --filter-files]
exclude: ^data_analysis/example_scripts
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/PyCQA/flake8/ rev: 6.0.0 hooks: - id: flake8 exclude: ^data_analysis/example_scripts # - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
# rev: 0.2.2
# hooks: # - id: yamlfmt # args: [--width, '150']