-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
103 lines (89 loc) · 1.84 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
[build-system]
requires = ["setuptools >= 46.4.0", "wheel"] # 46.4.0 - attr: for version
build-backend = "setuptools.build_meta"
#
# Pylint
#
[tool.pylint.master]
jobs = 0
persistent= "yes"
suggestion-mode = "yes"
[tool.pylint.messages_control]
disable = [
"raw-checker-failed",
"bad-inline-option",
"locally-disabled",
"file-ignored",
"suppressed-message",
"useless-suppression",
"deprecated-pragma",
"use-symbolic-message-instead",
"unnecessary-pass",
"too-few-public-methods"
]
[tool.pylint.reports]
reports = "yes"
score = "yes"
[tool.pylint.logging]
logging-format-style = "new"
logging-modules = "logging"
[tool.pylint.variables]
allow-global-unused-variables = "yes"
init-import = "no"
[tool.pylint.format]
expected-line-ending-format = "LF"
max-line-length = 127
#
# Tox
#
# for some silly reason there isn't native toml config support yet
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.0
envlist =
py37
py38
py39
py310
py311sa20
py311sa14
coverage
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311sa14, py311sa20, coverage
[testenv]
commands = pytest {posargs}
passenv = CONSUMER_KEY, CONSUMER_SECRET
extras = ci
[testenv:py311sa20]
basepython=python3.11
deps =
sqlalchemy>=2.0.0
commands = pytest {posargs}
passenv = CONSUMER_KEY, CONSUMER_SECRET
extras = ci
[testenv:py311sa14]
basepython=python3.11
deps =
sqlalchemy<2.0.0
commands = pytest {posargs}
passenv = CONSUMER_KEY, CONSUMER_SECRET
extras = ci
[testenv:coverage]
basepython=python3.11
allowlist_externals=rm
commands =
coverage erase
rm -f ./.coverage.xml
coverage run -p --source=src --omit=tests -m pytest -v {posargs}
coverage combine
coverage xml -o ./.coverage.xml
coverage report -m
passenv = CONSUMER_KEY, CONSUMER_SECRET
extras = ci
"""