Skip to content
Snippets Groups Projects
Commit 559119f5268b authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat: run flynt on the code base to convert everything into f-strings

parent 7d9ee6ecb523
No related branches found
No related tags found
1 merge request!60feat: run flynt on the code base to convert everything into f-strings
Pipeline #195868 passed
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
author = "LOGILAB S.A. (Paris, FRANCE)" author = "LOGILAB S.A. (Paris, FRANCE)"
author_email = "contact@logilab.fr" author_email = "contact@logilab.fr"
description = "A Cubicweb Storage that stores the data on S3" description = "A Cubicweb Storage that stores the data on S3"
web = "https://forge.extranet.logilab.fr/cubicweb/cubes/%s" % distname web = f"https://forge.extranet.logilab.fr/cubicweb/cubes/{distname}"
__depends__ = { __depends__ = {
"cubicweb": ">= 3.24.7, < 3.39.0", "cubicweb": ">= 3.24.7, < 3.39.0",
......
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
""" """
try: try:
rset = entity._cw.execute( rset = entity._cw.execute(
"Any stkey(D) WHERE X eid {}, X {} D".format(entity.eid, attr) f"Any stkey(D) WHERE X eid {entity.eid}, X {attr} D"
) )
except NotImplementedError: except NotImplementedError:
# may occur when called from migrate_entity, ie. when the storage # may occur when called from migrate_entity, ie. when the storage
......
...@@ -56,9 +56,7 @@ ...@@ -56,9 +56,7 @@
requires = {} requires = {}
for entry in ("__depends__",): # "__recommends__"): for entry in ("__depends__",): # "__recommends__"):
requires.update(__pkginfo__.get(entry, {})) requires.update(__pkginfo__.get(entry, {}))
install_requires = [ install_requires = [f"{d} {v and v or ''}".strip() for d, v in requires.items()]
"{} {}".format(d, v and v or "").strip() for d, v in requires.items()
]
setup( setup(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment