-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
executable file
·47 lines (44 loc) · 1.26 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
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
additional_dependencies: ['click<8.1']
language_version: python3.8
args:
["--line-length=100"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0 # Use the ref you want to point at
hooks:
- id: check-json
- id: check-xml
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
description: Forces line endings to the UNIX LF character
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.942'
hooks:
- id: mypy
args: ["--config-file=.mypy.ini"]
additional_dependencies: ['numpy>=1.21.2']
- repo: https://github.com/PyCQA/pylint
rev: 'v2.13.7'
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
# "-rn", # only display messages
# "-sn", # don't display the score
"--rcfile=.pylintrc", # link to config file
]