Skip to content

Commit

Permalink
Change to flakeheaven
Browse files Browse the repository at this point in the history
Closes #24
  • Loading branch information
RoTranDo committed Oct 12, 2023
1 parent 5e4b095 commit 0510f37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions anfema_django_testutils/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ minversion = 3.18
envlist =
py{39,310}-django32
py{39,310,311}-django{41,42}
flake8
flake
isort
black

Expand All @@ -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.
Expand Down

0 comments on commit 0510f37

Please sign in to comment.