unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 33bfcee32485370cb489ecc43153cbb99175fd77 976 bytes (raw)
name: gnu/packages/patches/python-pylama-eradicate.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
diff --git a/pylama/lint/pylama_eradicate.py b/pylama/lint/pylama_eradicate.py
index 3a00425..645eaaf 100644
--- a/pylama/lint/pylama_eradicate.py
+++ b/pylama/lint/pylama_eradicate.py
@@ -1,5 +1,5 @@
 """Commented-out code checking."""
-from eradicate import commented_out_code_line_numbers
+from eradicate import Eradicator
 from pylama.lint import Linter as Abstract
 
 try:
@@ -19,7 +19,7 @@ class Linter(Abstract):
         :return list: List of errors.
         """
         code = converter(code)
-        line_numbers = commented_out_code_line_numbers(code)
+        line_numbers = Eradicator().commented_out_code_line_numbers(code)
         lines = code.split('\n')
 
         result = []
diff --git a/requirements-test.txt b/requirements-test.txt
index f9ce65b..c84248e 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -2,6 +2,6 @@
 
 ipdb
 pytest
-eradicate   >= 1.0
+eradicate   >= 2.0
 radon       >= 1.4.2
 mypy        ; python_version >= '3.5'

debug log:

solving 33bfcee324 ...
found 33bfcee324 in https://yhetil.org/guix-patches/c55b5625-b46a-6cc0-8207-193f3e87b83d@arctype.co/

applying [1/1] https://yhetil.org/guix-patches/c55b5625-b46a-6cc0-8207-193f3e87b83d@arctype.co/
diff --git a/gnu/packages/patches/python-pylama-eradicate.patch b/gnu/packages/patches/python-pylama-eradicate.patch
new file mode 100644
index 0000000000..33bfcee324

1:16: trailing whitespace.
 
1:25: trailing whitespace.
 
1:32: trailing whitespace.
 
Checking patch gnu/packages/patches/python-pylama-eradicate.patch...
Applied patch gnu/packages/patches/python-pylama-eradicate.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 33bfcee32485370cb489ecc43153cbb99175fd77	gnu/packages/patches/python-pylama-eradicate.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).