This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
85 lines (76 loc) · 2.2 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
[build-system]
requires = ["setuptools >=42", "wheel"]
[tool.black]
target-version = ["py38", "py39", "py310", "py311"]
[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
disallow_any_unimported = true
#disallow_any_expr = true # too much for now
disallow_any_decorated = true
disallow_any_explicit = true
warn_unreachable = true
[tool.pylint.main]
jobs = 2
load-plugins = [
"pylint.extensions.check_elif",
"pylint.extensions.code_style",
"pylint.extensions.comparison_placement",
"pylint.extensions.eq_without_hash",
"pylint.extensions.for_any_all",
"pylint.extensions.no_self_use",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.private_import",
"pylint.extensions.redefined_loop_name",
]
persistent = false
py-version = "3.8"
fail-on = ["I"]
[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
commands =
{envpython} -X dev -bb -m pytest {posargs}
{envpython} -X dev -bb -W error {env:PYLTTOAINE_AIOHTTP_CGI_W:} -m pylttoaine --help
{envpython} -X dev -bb -W error {env:PYLTTOAINE_AIOHTTP_CGI_W:} -m pylttoaine version
[testenv:py311]
setenv =
# https://github.com/aio-libs/aiohttp/issues/6600
AIOHTTP_NO_EXTENSIONS = 1
# https://github.com/aio-libs/aiohttp/pull/6708
PYLTTOAINE_AIOHTTP_CGI_W = -W "default:'cgi' is deprecated:DeprecationWarning:aiohttp.helpers"
[testenv:pyston3]
basepython = pyston3
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
pypy-3.9: pypy3
"""