-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.08 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
exclude: ^misc/bench.py$
repos:
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
args:
- "--line-length=100"
- "--exclude=parsec/core/gui/_resources_rc.py"
- "--exclude=parsec/core/gui/ui/"
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782
hooks:
- id: mypy
additional_dependencies: [trio_typing, pendulum]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3 # Use the ref you want to point at
hooks:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: releaser
name: releaser
entry: python ./misc/releaser.py check
language: python
language_version: python3
pass_filenames: false
require_serial: true
- id: license_headers
name: license_headers
entry: python ./misc/license_headers.py add
language: python
language_version: python3
types: [python]