-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
45 lines (40 loc) · 993 Bytes
/
.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
---
default_stages: [commit, push]
default_language_version:
# force all unspecified python hooks to run python3
python: python3
minimum_pre_commit_version: "1.20.0"
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- repo: https://github.com/asottile/pyupgrade
rev: v2.19.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.971
# hooks:
# - id: mypy
# args: ["pathable"]
- repo: local
hooks:
- id: flynt
name: Convert to f-strings with flynt
entry: flynt
language: python
additional_dependencies: ['flynt==0.76']
- id: black
name: black
entry: black
language: system
require_serial: true
types: [python]
- id: isort
name: isort
entry: isort
args: ['--filter-files']
language: system
require_serial: true
types: [python]