diff --git a/pyproject.toml b/pyproject.toml index 73c3245..e6fd5e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 @@ -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 @@ -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 @@ -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]