forked from ShayHill/docx2python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
123 lines (111 loc) · 3.23 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
ci:
skip: [poetry-lock,pyright]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: check-toml
- id: check-xml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
# - id: requirements-txt-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
args:
- --remove
# - id: name-tests-test
# args:
# - --pytest-test-first
- repo: https://github.com/python-poetry/poetry
rev: 1.4.0
hooks:
- id: poetry-check
- id: poetry-lock
# - repo: https://github.com/seandstewart/pre-commit-poetry-export
# rev: f0501a85959a71c26b964d9542a78d1033af083e
# hooks:
# - id: export-requirements
# - id: export-requirements-dev
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
exclude: "tests"
args:
- --ignore-missing-imports
files: ^(src/|tests/)
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.2
hooks:
- args:
- --py37-plus
id: pyupgrade
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: remove-tabs
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.2.0
hooks:
- id: commitizen
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a5
hooks:
- id: pylint
exclude: "tests"
name: pylint
args:
- --good-names=i,j,_,e,f,k,v,_gather_Pr,get_pStyle,_format_Pr_into_html,Pr2val,k_,v_,collect_numFmts,numFmts_root,abstractNumId2numFmts,abstractNum,numFmt,numId,abstractNumIdval,collect_docProps,qn,Type,Target,numFmt2bullet_function,numId2numFmts,numId2count,pPr,numPr,n,l,abstractNumId,rId,officeDocument_runs,docProps,Id,ex,docProp2test,dc,get_checkBox_entry,checkBox,get_ddList_entry,ddList,do_pStyle,__numId2NumFmts,docProp2text,gather_Pr,pr
- --disable=fixme
- --disable=consider-using-with
- --disable=no-member
- --disable=too-many-instance-attributes
- --disable=too-many-branches
- --disable=too-many-statements
- --disable=too-many-locals
- --disable=too-few-public-methods
- --disable=protected-access
- --disable=c-extension-no-member
- --disable=too-many-instance-attributes
- --disable=duplicate-code
- --disable=too-many-locals
- --disable=import-error
- --disable=too-many-arguments
- --disable=broad-except
- --disable=no-name-in-module
- --load-plugins=pylint.extensions.docparams
- --accept-no-param-doc=n
- --accept-no-raise-doc=n
- --accept-no-return-doc=n
- --accept-no-yields-doc=n
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
exclude: "tests"
args:
- --max-line-length=88
- --ignore=E203,W503
# reads pyproject.toml for additional config
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.305
hooks:
- id: pyright