-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
169 lines (142 loc) · 5.05 KB
/
pyproject.toml
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[build-system]
requires = ["setuptools>=42", "setuptools_scm[toml]>=6.2", "wheel"]
build-backend = "setuptools.build_meta"
[tool.isort]
profile = "black"
src_paths = ["src"]
import_heading_future = "Future"
import_heading_stdlib = "Standard Library"
import_heading_thirdparty = "Third Party"
import_heading_firstparty = "Houdini Package Runner"
dedup_headings = true
skip_glob = "*icons.py"
indented_import_headings = false
[tool.mypy]
files = "src"
mypy_path = "src"
[[tool.mypy.overrides]]
module = "hou.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "hdefereval.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pylint.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "deepmerge.*"
ignore_missing_imports = true
[tool.coverage]
[tool.coverage.run]
branch = true
source = ["houdini_package_runner"]
omit = [
"*manager.py",
"*hipfile.py",
"*hip_file.py",
"*version.py"
]
disable_warnings = [
"module-not-imported",
"module-not-measured",
]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
"if TYPE_CHECKING",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]
ignore_errors = true
skip_empty = true
[tool.coverage.html]
directory = "coverage_html_report"
[tool.pylint]
[tool.pylint.master]
extension-pkg-whitelist = ['PySide2']
ignore=['CVS']
ignore-patterns=["icons.py"]
persistent = ['no']
suggestion-mode = ['yes']
unsafe-load-any-extension = ['no']
[tool.pylint.'MESSAGES CONTROL']
disable = [
'import-error,c-extension-no-member,line-too-long,duplicate-code,fixme,too-many-lines,import-outside-toplevel'
]
enable = ['no-else-return']
[tool.pylint.'REPORTS']
reports = ['no']
score = ['no']
[tool.pylint.'LOGGING']
logging-modules = ['logging']
[tool.pylint.'VARIABLES']
allow-global-unused-variables = ['yes']
dummy-variables-rgx = ['_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_']
ignored-argument-names = ['_.*|^ignored_|^unused_']
init-import = ['no']
redefining-builtins-modules = ['six.moves,future.builtins,io']
[tool.pylint.'FORMAT']
ignore-long-lines = ['^\s*(# )?<?https?://\S+>?$']
indent-after-paren = 4
indent-string = ' '
max-line-length = 100
max-module-lines = 1000
no-space-check = ['trailing-comma,dict-separator']
single-line-class-stmt = ['no']
single-line-if-stmt = ['no']
[tool.pylint.'TYPECHECK']
contextmanager-decorators = ['contextlib.contextmanager']
ignore-mixin-members = ['yes']
ignore-on-opaque-inference = ['yes']
ignored-classes = ['optparse.Values,thread._local,_thread._local,Signal']
ignored-modules = ['PySide2,shiboken2']
missing-member-hint = ['yes']
missing-member-hint-distance = 1
missing-member-max-choices = 1
[tool.pylint.'MISCELLANEOUS']
notes = ['FIXME,XXX,TODO,BUG']
[tool.pylint.'BASIC']
argument-naming-style=['snake_case']
attr-naming-style=['snake_case']
bad-names=['foo,bar,foobar,baz']
class-attribute-naming-style='any'
class-naming-style='PascalCase'
const-rgx=['(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$']
docstring-min-length = -1
function-naming-style='snake_case'
good-names=['i,j,k,t,ex,fp,Run,_'] # fp for pytest_subprocess
inlinevar-naming-style='any'
method-naming-style='snake_case'
module-rgx='(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|([0-9]+))$'
name-group=''
no-docstring-rgx='^_'
property-classes='abc.abstractproperty'
variable-naming-style='snake_case'
bad-functions='apply,input'
[tool.pylint.'DESIGN']
max-args = 8
max-attributes = 30
max-bool-expr = 5
max-branches = 40
max-locals = 15
max-parents = 7
max-public-methods = 20
max-returns = 6
max-statements = 100
min-public-methods = 0
[tool.pylint.'CLASSES']
defining-attr-methods = ['__init__,__new__,setUp']
valid-classmethod-first-arg = ['cls']
valid-metaclass-classmethod-first-arg = ['mcs']
[tool.pylint.'IMPORTS']
allow-wildcard-with-all = ['no']
[tool.pylint.'EXCEPTIONS']
overgeneral-exceptions = ['Exception,hou.Error']