-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
.pre-commit-config.yaml
46 lines (41 loc) · 1011 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
46
---
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.38.4
hooks:
- id: pyupgrade
args: ["--py36-plus"]
- repo: local
hooks:
- id: flynt
name: Convert to f-strings with flynt
entry: flynt
language: python
additional_dependencies: ['flynt==0.64']
- 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]
- id: pyflakes
name: pyflakes
entry: pyflakes
language: system
require_serial: true
types: [python]