-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
49 lines (49 loc) · 1.43 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
48
49
files: |
(?x)(
^ohsomeTools/ |
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: forbid-new-submodules
- id: mixed-line-ending
args: [ '--fix=lf' ]
description: Forces to replace line ending by the UNIX 'lf' character.
- id: pretty-format-json
args: [ '--no-sort-keys' ]
- id: no-commit-to-branch
args: [ --branch, master ]
- id: no-commit-to-branch
args: [ --branch, main ]
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
args: # arguments to configure black
- --line-length=80
language_version: python3.9
# - repo: https://gitlab.com/pycqa/flake8
# rev: "3.9.2"
# hooks:
# - id: flake8
# args:
# - "--max-line-length=120"
# - "--ignore=P101,D202,D401"
# additional_dependencies:
# [
# "flake8-bugbear==19.8.0",
# "flake8-coding==1.3.2",
# "flake8-comprehensions==3.0.1",
# "flake8-debugger==3.2.1",
# "flake8-deprecated==1.3",
# "flake8-pep3101==1.2.1",
# "flake8-polyfill==1.0.2",
# "flake8-print==3.1.4",
# "flake8-string-format==0.2.3",
# "flake8-docstrings==1.5.0",
# ]