diff --git a/anfema_django_testutils/runner.py b/anfema_django_testutils/runner.py index 5821b8c..20590e0 100644 --- a/anfema_django_testutils/runner.py +++ b/anfema_django_testutils/runner.py @@ -367,8 +367,8 @@ def _resolve_subtests_results( {len(header)*"-"} """ ) - + self._exc_info_to_string(err, test) - + 2 * '\n' + + self._exc_info_to_string(err, test) # noqa: W503 + + 2 * '\n' # noqa: W503 ) result_priority = min(result_priority_map[result], result_priority) result = reverse_result_priority_map[result_priority] diff --git a/pyproject.toml b/pyproject.toml index 63f3abc..2b3e97a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,5 +69,5 @@ known_django = "django" sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] lines_after_imports = 2 -[tool.flake8] -max-line-length = 120 +[tool.flakeheaven] +max_line_length = 120 diff --git a/tox.ini b/tox.ini index 5448c40..7ddf547 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ minversion = 3.18 envlist = py{39,310}-django32 py{39,310,311}-django{41,42} - flake8 + flake isort black @@ -18,12 +18,12 @@ setenv = commands = python -m unittest discover -s "{toxinidir}/tests" -[testenv:flake8] +[testenv:flake] description = Checks the code for compliance with Flake8 coding standards. basepython = python3.11 changedir = {toxinidir} -deps = flake8-pyproject -commands = flake8 anfema_django_testutils tests +deps = flakeheaven +commands = flakeheaven lint anfema_django_testutils tests [testenv:isort] description = Checks if imports are in the correct order and correctly formatted.