forked from scikit-hep/awkward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
157 lines (144 loc) · 4.51 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
[build-system]
requires = [
"setuptools>=42.0",
"cmake>=3.13",
"PyYAML",
]
build-backend = "setuptools.build_meta"
[tool.check-manifest]
ignore = [
# Hidden files
".*",
".*/**",
"**/.*",
"**/.*/**",
# Local files
"docs*/**",
"dev/**",
"studies/**",
"cuda-build.sh",
"kernel-specification.yml",
"localbuild.py",
# Extern files
"pybind11/*.*",
"pybind11/pybind11/**",
"*/example/**",
"*/doc/**",
"*/tests/**",
"*/test/**",
"*/bin/**",
"**/Makefile",
"rapidjson/*.md",
"rapidjson/docker/*",
"dlpack/apps/**",
"dlpack/**/*.md",
"rapidjson/**/*.json",
"rapidjson/**/*.yml",
"rapidjson/**/*.js",
"rapidjson/**/*.sh",
"rapidjson/**/*.autopkg",
"rapidjson/thirdparty/**",
"rapidjson/docker/**",
]
[tool.cibuildwheel]
test-extras = ["test"]
test-command = "pytest {project}/tests"
skip = ["pp*win*", "pp*-manylinux_i686"]
test-skip = ["*universal2:arm64", "pp*", "*musllinux*"]
manylinux-x86_64-image = "manylinux2014"
build-verbosity = 1
[tool.cibuildwheel.environment]
PIP_ONLY_BINARY = "cmake,numpy"
[[tool.cibuildwheel.overrides]]
select = "cp3?-*"
manylinux-x86_64-image = "manylinux2010"
[tool.pytest.ini_options]
minversion = "6.0"
norecursedirs = ["src", "pybind11", "rapidjson", "studies"]
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [
"error",
"ignore:the imp module is deprecated in favour of importlib:DeprecationWarning", # move to importlib to fix (setuptools issue)
"ignore:The NumPy module was reloaded:UserWarning",
"ignore:.*np\\.MachAr.*:DeprecationWarning", # until https://github.com/numba/numba/issues/7758 is fixed
]
log_cli_level = "info"
[tool.pylint]
master.py-version = "3.6"
master.jobs = "0"
master.ignore-paths = [
"src/awkward/_typeparser/generated_parser.py"
]
reports.output-format = "colorized"
messages_control.enable = [
"useless-suppression",
]
messages_control.disable = [
"abstract-method", # TODO: check but might need to keep disabled
"arguments-differ", # TODO: some of these can be cleaned up
"attribute-defined-outside-init", # TODO: These should be avoided!
"bad-super-call", # TODO: investigate!
"broad-except", # TODO: investigate
"cell-var-from-loop", # TODO: investigate and locally disable if needed (unlikely)
"chained-comparison", # TODO
"consider-using-f-string", # TODO
"consider-using-max-builtin", # TODO
"consider-using-min-builtin", # TODO
"duplicate-code", # Hahahaha
"exec-used", # TODO: locally disable
"fixme",
"global-statement", # TODO: locally disable if really required
"import-error",
"import-outside-toplevel", # Could be done per-use to discourage
"inconsistent-return-statements", # TODO: probably fix
"invalid-class-object", # TODO: investigate!
"invalid-name",
"invalid-unary-operand-type", # TODO: investigate!
"keyword-arg-before-vararg", # TODO: investigate
"line-too-long",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-else-break", # TODO perhaps?
"no-else-raise", # TODO perhaps?
"no-else-return", # TODO perhaps?
"no-member",
"no-name-in-module",
"no-self-use", # TODO: investigate and locally disable
"no-value-for-parameter", # TODO: investigate
"property-with-parameters", # TODO: investigate
"protected-access",
"raise-missing-from", # TODO
"redefined-builtin", # TODO: fix or locally disable if in a signature
"redefined-outer-name", # TODO: fix
"simplifiable-if-expression", # TODO
"super-init-not-called", # TODO: probably fix
"too-few-public-methods",
"too-many-arguments",
"too-many-boolean-expressions",
"too-many-branches",
"too-many-function-args",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"unbalanced-tuple-unpacking", # TODO: investigate!
"undefined-loop-variable", # TODO: fix if possible
"ungrouped-imports",
"unidiomatic-typecheck", # TODO
"unnecessary-comprehension", # TODO
"unnecessary-lambda", # TODO
"unreachable", # TODO
"unsubscriptable-object", # TODO: check, but possibly a false positive
"unused-argument", # TODO: investigate and locally disable
"unused-import", # TODO: remove
"unused-variable", # TODO
"use-a-generator", # TODO
"use-implicit-booleaness-not-len", # TODO perhaps?
"wrong-import-order", # Could use isort
"wrong-import-position",
]