diff --git a/.gitignore b/.gitignore index 764631e..147eecc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,8 @@ venv .vscode __pycache__ venv -logs \ No newline at end of file +logs +.tox +old +.mypy_cache +.pytest_cache diff --git a/sedr/schemat.py b/sedr/schemat.py index 02755de..47381c3 100644 --- a/sedr/schemat.py +++ b/sedr/schemat.py @@ -64,8 +64,8 @@ def after_call(context, case, response): if response.request: # Log calls with status util.logger.debug( - f"after_call {'OK' if response.ok else 'ERR'} " + \ - f"{response.request.path_url} {response.text[0:150]}" + f"after_call {'OK' if response.ok else 'ERR'} " + + f"{response.request.path_url} {response.text[0:150]}" ) diff --git a/tox.ini b/tox.ini index 7d8688a..b5f8f19 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,10 @@ [tox] -envlist = unittest, black, prospector, bandit, py312 +envlist = unittest, black, prospector, bandit, py{311,312}, markdown # Tell tox to not require a setup.py file skipsdist = True -[testenv] +[testenv]; This is called py312 in envlist ignore_outcome = true description = This is a live test against the API edrisobaric deps = @@ -34,6 +34,7 @@ commands = prospector --no-autodetect \ {toxinidir}/sedr/ [testenv:black] +ignore_outcome = true description = Check code style deps = -r{toxinidir}/requirements.txt @@ -55,7 +56,7 @@ deps = -r{toxinidir}/requirements-dev.txt commands = bandit -r --ini .bandit {toxinidir}/sedr/ -[testenv:lint-md] +[testenv:markdown] ignore_outcome = true description = Lint README.md commands = pymarkdown scan README.md