diff --git a/pyproject.toml b/pyproject.toml index 85b91eb..7aafb35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,12 @@ [tool.coverage.run] source = ["django_loci"] parallel = true +# To ensure correct coverage, we need to include both +# "multiprocessing" and "thread" in the concurrency list. +# This is because Django test suite incorrectly reports coverage +# when "multiprocessing" is omitted and the "--parallel" flag +# is used. Similarly, coverage for websocket consumers is +# incorrect when "thread" is omitted and pytest is used. concurrency = ["multiprocessing", "thread"] omit = [ "django_loci/__init__.py", @@ -13,7 +19,7 @@ extend_exclude = ["**/*.py"] [tool.isort] known_third_party = ["django"] -known_first_party = ["openwisp_utils"] +known_first_party = ["django_loci", "openwisp_utils"] default_section = "THIRDPARTY" line_length = 88 multi_line_output = 3 diff --git a/setup.cfg b/setup.cfg index e003786..5a239df 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,8 +1,6 @@ [bdist_wheel] universal=1 - - [flake8] exclude = migrations, ./tests/*settings*.py