-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
47 lines (46 loc) · 1.48 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
43
44
45
46
47
---
minimum_pre_commit_version: 1.15.2
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-merge-conflict # Check for files that contain merge conflict strings.
- id: trailing-whitespace # Trims trailing whitespace.
args: [--markdown-linebreak-ext=md]
- id: mixed-line-ending # Replaces or checks mixed line ending.
args: [--fix=lf]
- id: end-of-file-fixer # Makes sure files end in a newline and only a newline.
- id: check-merge-conflict # Check for files that contain merge conflict strings.
- id: check-ast # Simply check whether files parse as valid python.
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
hooks:
- id: pyupgrade
args:
- --py36-plus
- --keep-mock
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.1.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [-l 100]
- repo: local
hooks:
- id: pylint
name: Lint code and tests
language: python
entry: poetry run pylint
types: [python]
additional_dependencies:
- poetry
# - repo: https://github.com/pre-commit/mirrors-pylint
# rev: v2.4.4
# hooks:
# - id: pylint
# name: PyLint
# args: [--output-format=parseable, --rcfile=.pylintrc]