Diff: https://github.com/PyCQA/docformatter/compare/refs/tags/v1.6.4...v1.7.5 Changelog: https://github.com/PyCQA/docformatter/blob/refs/tags/v1.7.5/CHANGELOG.md
30 lines
869 B
Diff
30 lines
869 B
Diff
diff --git a/tests/conftest.py b/tests/conftest.py
|
|
index 762d246..7f86763 100644
|
|
--- a/tests/conftest.py
|
|
+++ b/tests/conftest.py
|
|
@@ -101,21 +101,9 @@ def run_docformatter(arguments, temporary_file):
|
|
|
|
Return subprocess object.
|
|
"""
|
|
- if "DOCFORMATTER_COVERAGE" in os.environ and int(
|
|
- os.environ["DOCFORMATTER_COVERAGE"]
|
|
- ):
|
|
- DOCFORMATTER_COMMAND = [
|
|
- "coverage",
|
|
- "run",
|
|
- "--branch",
|
|
- "--parallel",
|
|
- "--omit=*/site-packages/*",
|
|
- os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
|
|
- ]
|
|
- else:
|
|
- DOCFORMATTER_COMMAND = [
|
|
- os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
|
|
- ] # pragma: no cover
|
|
+ DOCFORMATTER_COMMAND = [
|
|
+ "@docformatter@"
|
|
+ ]
|
|
|
|
if "-" not in arguments:
|
|
arguments.append(temporary_file)
|