Browse code

check for f-strings and use pyupgrade with latest python

Hanno Böck authored on 29/01/2022 17:56:01
Showing 1 changed files
... ...
@@ -13,13 +13,12 @@ class TestCodingstyle(unittest.TestCase):
13 13
         subprocess.run(["pyflakes"] + pyfiles, check=True)
14 14
 
15 15
         pylint_disable = "missing-docstring,invalid-name,duplicate-code," \
16
-                         + "too-many-arguments,consider-using-with," \
17
-                         + "consider-using-f-string"
16
+                         + "too-many-arguments,consider-using-with"
18 17
         subprocess.run(["pylint", "--disable=%s" % pylint_disable]
19 18
                        + pyfiles, check=True)
20 19
 
21 20
         subprocess.run(["flake8", "--select=DUO"] + pyfiles, check=True)
22
-        subprocess.run(["pyupgrade", "--keep-percent-format", "--py38-plus"]
21
+        subprocess.run(["pyupgrade", "--py311-plus"]
23 22
                        + pyfiles, check=True)
24 23
 
25 24