Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (85 loc) · 2.3 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (85 loc) · 2.3 KB
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
[build-system]
requires = ["setuptools>=42.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pylint.'MASTER']
jobs=0
load-plugins=[
"pylint.extensions.docparams",
"pylint.extensions.docstyle",
"pylint.extensions.typing"
]
py-version="3.9"
[tool.pylint.'MESSAGES CONTROL']
disable = [
"C", # Conventions
"R", # Reformats
"unnecessary-lambda", # W0108
"protected-access", # W0212
"wildcard-import", # W0401
"unused-wildcard-import", # W0614
"redefined-builtin", # W0622
# These do not work with starred parameter names
"missing-param-doc", # W9015
"differing-param-doc", # W9017
# These do not work with wildcard imports using __all__
"import-error", # E0401
"undefined-variable", # E0602
"undefined-all-variable", # E0603
# Doesn't work with PrivateProxy attribute access
"no-member", # E1101
]
enable = [
"missing-module-docstring", # C0114
"missing-class-docstring", # C0115
"missing-function-docstring", # C0116
"use-maxsplit-arg", # C0207
"line-too-long", # C0301
"consider-using-ternary", # R1706
"use-dict-literal", # R1735
]
[tool.pylint.'REPORTS']
output-format = "parseable"
reports = "no"
[tool.pylint.'FORMAT']
good-names = [
"a", "b", "c",
"e",
"i", "id", "j", "k", "l",
"o",
"x", "y", "z",
"_",
"__",
]
max-line-length=160
# [tool.pytest] is reserved for future use; [tool.pytest.ini_options] is a temporary bridge to the newer TOML format.
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov=dyncommands --cov-report=html --cov-fail-under=100"
testpaths = [
"tests",
]
# Currently only the old format (ConfigParser ini-style) via legacy_tox_ini, a native implementation is planned though.
[tool.tox]
legacy_tox_ini = """
[tox]
minversion = 3.8.0
envlist = py39, py310, pylint
isolated_build = true
[gh-actions]
python =
3.9: py39
3.10: py310, pylint
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_dev.txt
extras = test
commands =
pytest --basetemp={envtmpdir} --no-cov
[testenv:pylint]
deps = pylint
commands =
pylint src --rcfile=pyproject.toml
"""