-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.cfg
144 lines (140 loc) · 3.92 KB
/
setup.cfg
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# [tool:pytest]
# addopts = --cov=HumGen3D --cov-config=tests/.coveragerc
[mypy]
strict = True
show_error_codes=True
disable_error_code = valid-type, attr-defined, union-attr, misc, no-any-return
disallow_subclassing_any = False
namespace_packages = True
explicit_package_bases = True
ignore_missing_imports = True
implicit_reexport = True
warn_unused_ignores = False
exclude = user_interface|operators.py|extern|scripts|tests|properties
[pylint.MASTER]
load-plugins=pylint.extensions.docparams
ignore = extern, scripts, tutorial_operator, tests
disable=
wrong-import-position,
import-error,
no-member,
import-outside-toplevel,
no-name-in-module,
attribute-defined-outside-init,
unspecified-encoding,
too-few-public-methods,
invalid-name,
protected-access,
relative-beyond-top-level,
wrong-import-order,
unused-argument,
anomalous-backslash-in-string,
# ##### ENABLE LATER ########
no-else-continue,
no-else-return,
consider-using-f-string,
possibly-unused-variable,
consider-using-with,
too-many-branches,
too-many-locals,
too-many-arguments,
consider-using-generator,
abstract-method,
consider-using-get,
redefined-outer-name,
chained-comparison,
arguments-differ,
wildcard-import,
too-many-instance-attributes,
unnecessary-pass,
use-maxsplit-arg,
unnecessary-lambda-assignment,
unnecessary-comprehension,
unused-variable,
duplicate-code,
unbalanced-tuple-unpacking,
arguments-renamed,
inconsistent-return-statements,
unidiomatic-typecheck,
global-variable-not-assigned,
consider-using-in,
undefined-variable,
logging-not-lazy,
consider-using-dict-items,
too-many-return-statements,
broad-except,
cyclic-import,
bad-classmethod-argument,
assignment-from-no-return,
unused-wildcard-import,
too-many-statements,
unnecessary-lambda,
unused-private-member,
used-before-assignment,
too-many-public-methods,
consider-using-max-builtin,
too-many-nested-blocks,
redefined-builtin,
not-an-iterable,
useless-return,
unreachable,
eval-used,
too-many-lines,
######### DUPLICATE FROM FLAKE8 ########
missing-module-docstring,
missing-class-docstring,
missing-function-docstring,
line-too-long,
fixme,
bare-except,
unused-import,
[flake8]
max-line-length = 88
literal-inline-quotes = double
literal-multiline-quotes = double
args=["--darglint-ignore-regex", "^_(.*)"]
per-file-ignores =
operators.py:D,
user_interface/*:D,
backend/*:D,
tests/*:D,
scripts/*:D,
common/*:D,
ignore=
# Imperitive mood for docstrings, annoying.
D401,
# Syntax error in forward annotation conflicts with Blender props annotation style
F722,
# Annotation syntax checker. Conflicts with Blender props annotation style
F821,
# Wants + operator on previous line. Disagree with this styling, conflicts with flake8 recommendation
W503,
# Suggest usage of dataclasses for property groups, but we don't want to use them
PIE793,
# Suggests random is insecure, but this doesn't matter for our implementation
DUO102,
# Prohibits assign and return. Disagree with this styling, makes return statements unclear
PIE781,
R504,
# Wants docstrings in magic and init methods, but I don't think they are necessary
D105,
D107,
# Checks class attribute order, conflicts with common sense placement
CCE001,
# Incorrectly suggest usage of single quotes for multiline, desipte cfg option
LIT003,
# Unecessary else after return, but I think it makes the code more readable
R505,
# Unecessary else statement after continue, just annoying
R507,
##### TO BE ENABLED #####
# F ixme
T100,
# T odo
T101,
# Too many function arguments
CFQ002,
# Too many return values
CFQ004,
# Function cognitive complexity
CCR001