Skip to content

Commit

Permalink
test(tox): don't error on aiohttp cgi 3.11 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 20, 2022
1 parent 3b06256 commit 25c9ec7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ warn_unreachable = true

[tool.pylint.MASTER]
jobs = 2
load-plugins = [
"pylint_strict_informational",
]
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
Expand All @@ -31,11 +30,10 @@ disable = [
"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",
]
enable = ["use-symbolic-message-instead", "useless-suppression"]

[tool.pylint.REPORTS]
score = false

Expand All @@ -53,10 +51,10 @@ 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:} -m pytekukko.examples.update_google_calendar --help
{envpython} -X dev -bb -W error {env:PYTEKUKKO_AIOHTTP_CGI_W:} -m pytekukko.examples.print_collection_schedules --help
{envpython} -X dev -bb -W error {env:PYTEKUKKO_AIOHTTP_CGI_W:} -m pytekukko.examples.print_invoice_headers --help
{envpython} -X dev -bb -W error {env:PYTEKUKKO_AIOHTTP_CGI_W:} -m pytekukko.examples.print_next_collections --help
{envpython} -X dev -bb -W error {env:PYTEKUKKO_AIOHTTP_CGI_W:} {env:PYTEKUKKO_CERTIFI_IMPORTLIB_RESOURCES_PATH_W:} -m pytekukko.examples.update_google_calendar --help
[testenv:py311]
setenv =
# https://github.com/aio-libs/aiohttp/issues/6600
Expand All @@ -65,6 +63,8 @@ setenv =
YARL_NO_EXTENSIONS = 1
# Similarly as for aiohttp and yarl
FROZENLIST_NO_EXTENSIONS = 1
# https://github.com/aio-libs/aiohttp/pull/6708
PYTEKUKKO_AIOHTTP_CGI_W = -W "default:'cgi' is deprecated:DeprecationWarning:aiohttp.helpers"
# https://github.com/certifi/python-certifi/issues/170#issuecomment-952885966
PYTEKUKKO_CERTIFI_IMPORTLIB_RESOURCES_PATH_W = -W "default:path is deprecated:DeprecationWarning:certifi.core"
[testenv:pyston3]
Expand Down

0 comments on commit 25c9ec7

Please sign in to comment.