/
pyproject.toml
81 lines (75 loc) · 2.37 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
[build-system]
requires = ["setuptools >=42", "wheel"]
[tool.black]
target-version = ["py38", "py39", "py310"]
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.8"
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
show_error_codes = true
enable_error_code = "ignore-without-code"
strict = true
warn_unreachable = true
[tool.pylint.MASTER]
jobs = 2
load-plugins = [
"pylint_strict_informational",
]
persistent = false
py-version = "3.8"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"duplicate-code", # examples, https://github.com/PyCQA/pylint/issues/214
"fixme",
"format", # handled by black
"missing-class-docstring", # handled by pydocstyle
"missing-function-docstring", # handled by pydocstyle
"missing-module-docstring", # handled by pydocstyle
"wrong-import-order", # handled by isort
]
enable = [
"use-symbolic-message-instead",
"useless-suppression",
]
[tool.pylint.REPORTS]
score = false
[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = ["error"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38, py39, py310, py311, pypy3, pyston3
skip_missing_interpreters = true
[testenv]
deps = -rrequirements-test.txt
extras = examples
commands =
{envpython} -X dev -bb -m pytest {posargs}
{envpython} -X dev -bb -W error -m pytekukko.examples.print_collection_schedules --help
{envpython} -X dev -bb -W error -m pytekukko.examples.print_invoice_headers --help
{envpython} -X dev -bb -W error -m pytekukko.examples.print_next_collections --help
{envpython} -X dev -bb -W error {env:PYTEKUKKO_CERTIFI_IMPORTLIB_RESOURCES_PATH_W:} {env:PYTEKUKKO_PYPARSING_SRE_CONSTANTS_W:} -m pytekukko.examples.update_google_calendar --help
[testenv:py311]
setenv =
# https://github.com/aio-libs/aiohttp/issues/6600
AIOHTTP_NO_EXTENSIONS = 1
# https://github.com/aio-libs/yarl/issues/680
YARL_NO_EXTENSIONS = 1
# Similarly as for aiohttp and yarl
FROZENLIST_NO_EXTENSIONS = 1
# https://github.com/certifi/python-certifi/issues/170#issuecomment-952885966
PYTEKUKKO_CERTIFI_IMPORTLIB_RESOURCES_PATH_W = -W "default:path is deprecated:DeprecationWarning:certifi.core"
# https://github.com/pyparsing/pyparsing/pull/379
PYTEKUKKO_PYPARSING_SRE_CONSTANTS_W = -W "default:module 'sre_constants' is deprecated:DeprecationWarning:pyparsing.core"
[testenv:pyston3]
basepython = pyston3
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
pypy-3.9: pypy3
"""