forked from jeanCarloMachado/PythonSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (46 loc) · 1.28 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
46
47
fail_fast: True
stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
stages: [commit, manual]
- id: end-of-file-fixer
stages: [commit, manual]
- id: check-yaml
stages: [commit, manual]
- id: check-added-large-files
stages: [commit, manual]
- id: check-docstring-first
stages: [commit, manual]
- repo: local
hooks:
- id: compile
name: Compile the code
entry: python -m compileall -q .
language: system
stages: [ commit ]
- repo: local
hooks:
- id: runtests
name: Run unit tests
entry: pytest tests
pass_filenames: false
language: system
stages: [commit]
#- repo: local
# hooks:
# - id: flakeFunctions
# name: Check for the size of functions
# entry: flake8 --ignore F,E,W,CFQ002 --max-function-length=50
# types: [python]
# language: script
# stages: [commit]
# mypy being the slowest has to be in the end
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.790
# hooks:
# - id: mypy
# args: [--config-file, mypy.ini]
# stages: [commit, manual]