-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
35 lines (34 loc) · 1.1 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
---
default_language_version:
python: python3.8
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
files: \.(jshintrc|json)$
- id: check-yaml
- id: debug-statements
- id: name-tests-test
files: ^tests/.+\.py$
- id: requirements-txt-fixer
- id: check-added-large-files
- id: check-byte-order-marker
- id: fix-encoding-pragma
args: [--remove]
- repo: https://github.com/asottile/reorder_python_imports.git
rev: v3.9.0
hooks:
- id: reorder-python-imports
args: [
--remove-import, 'from __future__ import absolute_import',
--remove-import, 'from __future__ import print_function',
--remove-import, 'from __future__ import unicode_literals',
]
- repo: http://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [--target-version, py38]