-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
.pre-commit-config.yaml
33 lines (33 loc) · 1009 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
repos:
- repo: local
hooks:
- id: find-requirements
name: find-requirements
entry: python find_libraries.py
language: python
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
# E402 module level import not at top of file
# W503 line break before binary operator
args: ["--max-line-length=105", "-j8", "--ignore=E402,W503"]
- repo: https://github.com/pycqa/pylint
rev: v3.0.3
hooks:
- id: pylint
args: [
"--generated-members=cv2.*,player.*,alsaaudio.Mixer",
"--disable=duplicate-code,line-too-long,too-few-public-methods,broad-exception-caught,unused-argument,import-error",
]