# HG changeset patch # User Laurent Peuch <cortex@worlddomination.be> # Date 1687886553 -7200 # Tue Jun 27 19:22:33 2023 +0200 # Node ID 559119f5268b8f96f9f28fca15d285d2bfa3ae35 # Parent 7d9ee6ecb5239d5036ac96d555d00953ae8f8969 feat: run flynt on the code base to convert everything into f-strings diff --git a/cubicweb_s3storage/__pkginfo__.py b/cubicweb_s3storage/__pkginfo__.py --- a/cubicweb_s3storage/__pkginfo__.py +++ b/cubicweb_s3storage/__pkginfo__.py @@ -12,7 +12,7 @@ author = "LOGILAB S.A. (Paris, FRANCE)" author_email = "contact@logilab.fr" 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__ = { "cubicweb": ">= 3.24.7, < 3.39.0", diff --git a/cubicweb_s3storage/storages.py b/cubicweb_s3storage/storages.py --- a/cubicweb_s3storage/storages.py +++ b/cubicweb_s3storage/storages.py @@ -202,7 +202,7 @@ """ try: 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: # may occur when called from migrate_entity, ie. when the storage diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -56,9 +56,7 @@ requires = {} for entry in ("__depends__",): # "__recommends__"): requires.update(__pkginfo__.get(entry, {})) -install_requires = [ - "{} {}".format(d, v and v or "").strip() for d, v in requires.items() -] +install_requires = [f"{d} {v and v or ''}".strip() for d, v in requires.items()] setup(