disable pylint warnings recommending with/open syntax
Hanno Böck

Hanno Böck commited on 2021-05-15 08:30:07
Zeige 1 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.

... ...
@@ -12,8 +12,8 @@ class TestCodingstyle(unittest.TestCase):
12 12
                        + pyfiles, check=True)
13 13
         subprocess.run(["pyflakes"] + pyfiles, check=True)
14 14
 
15
-        pylint_disable = "missing-docstring,invalid-name," \
16
-                         + "too-many-arguments,duplicate-code"
15
+        pylint_disable = "missing-docstring,invalid-name,duplicate-code," \
16
+                         + "too-many-arguments,consider-using-with"
17 17
         subprocess.run(["pylint", "--disable=%s" % pylint_disable]
18 18
                        + pyfiles, check=True)
19 19
 
20 20