mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 02:40:50 +00:00
python310Packages.docformatter: 1.5.0 -> 1.5.1
https://github.com/PyCQA/docformatter/blob/v1.5.1/CHANGELOG.md
This commit is contained in:
committed by
Robert Schütz
parent
72c236b163
commit
5a2b689d25
29
pkgs/development/python-modules/docformatter/test-path.patch
Normal file
29
pkgs/development/python-modules/docformatter/test-path.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||
index 5f5a9aa..3289222 100644
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -92,21 +92,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)
|
||||
Reference in New Issue
Block a user