-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
42 lines (40 loc) · 1.02 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
# manually run via pre-commit run --all-files
# alternatively, pre-commit run <hook_id> to run a specific hook
default_language_version:
python: python3.8
minimum_pre_commit_version: 2.9.2
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
# formatting
- repo: https://github.com/psf/black
rev: 21.10b0
hooks:
- id: black
# type checks
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.910-1' # Use the sha / tag you want to point at
hooks:
- id: mypy
# run tests
- repo: local
hooks:
# tests
- id: tests
name: run tests
pass_filenames: false
entry: "green -vvv --run-coverage ."
language: system
types: [python]
stages: [push]
# typehints
# - id: mypy
# name: typehints (mypy)
# entry: mypy -v --exclude "setup\.(py|cfg)|(build|misc|bin|\.github)/$" .
# language: system
# #stages: [push]