From 6eda381331347c8359555167927c3f8301d1bd1b Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Wed, 16 Aug 2023 10:12:23 +0200 Subject: [PATCH] misc: apply double-quote-string-fixer (#79788) --- setup.py | 6 +++--- src/authentic2_cut/apps.py | 2 +- src/authentic2_cut/custom_settings.py | 30 +++++++++++++-------------- tests/test_hooks.py | 4 ++-- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/setup.py b/setup.py index 9e874ca..68b8764 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ class build(_build): class eo_sdist(sdist): def run(self): - print("creating VERSION file") + print('creating VERSION file') if os.path.exists('VERSION'): os.remove('VERSION') version = get_version() @@ -49,7 +49,7 @@ class eo_sdist(sdist): version_file.write(version) version_file.close() sdist.run(self) - print("removing VERSION file") + print('removing VERSION file') if os.path.exists('VERSION'): os.remove('VERSION') @@ -93,7 +93,7 @@ setup( license='AGPLv3', description='Authentic2 CUT plugin', author="Entr'ouvert", - author_email="info@entrouvert.com", + author_email='info@entrouvert.com', packages=find_packages('src'), package_dir={ '': 'src', diff --git a/src/authentic2_cut/apps.py b/src/authentic2_cut/apps.py index aa9c6bf..4514f17 100644 --- a/src/authentic2_cut/apps.py +++ b/src/authentic2_cut/apps.py @@ -280,7 +280,7 @@ class AppConfig(django.apps.AppConfig): verbose_name=_('Email'), args=[A('pk')], accessor='email', - attrs={"td": {"class": "link"}}, + attrs={'td': {'class': 'link'}}, ) table.base_columns = base_columns table.sequence = sequence diff --git a/src/authentic2_cut/custom_settings.py b/src/authentic2_cut/custom_settings.py index 79667f6..7e9c1bc 100644 --- a/src/authentic2_cut/custom_settings.py +++ b/src/authentic2_cut/custom_settings.py @@ -95,35 +95,35 @@ A2_FC_USER_INFO_MAPPINGS = { A2_FC_SCOPES = ['openid', 'identite_pivot', 'email'] TEMPLATE_VARS = { - "help_url": 'https://support.grandlyon.com/glc/', - "account_label": "compte GRANDLYON CONNECT", - "partners_url": "https://www.grandlyon.com/projets/metropole-intelligente.html", - "support_url": "https://support.grandlyon.com/glc/#generalites", + 'help_url': 'https://support.grandlyon.com/glc/', + 'account_label': 'compte GRANDLYON CONNECT', + 'partners_url': 'https://www.grandlyon.com/projets/metropole-intelligente.html', + 'support_url': 'https://support.grandlyon.com/glc/#generalites', } if PLATFORM == 'dev': TEMPLATE_VARS.update( { - "environment_label": "Site de développement", - "moncompte_url": 'https://connexion-grandlyon.dev.entrouvert.org', - "help_url": "https://portail-citoyen-sau.guichet-recette.grandlyon.com/glc/", + 'environment_label': 'Site de développement', + 'moncompte_url': 'https://connexion-grandlyon.dev.entrouvert.org', + 'help_url': 'https://portail-citoyen-sau.guichet-recette.grandlyon.com/glc/', } ) elif PLATFORM == 'test': TEMPLATE_VARS.update( { - "environment_label": "Site de test", - "smarttag_js": "https://tag.aticdn.net/586793/smarttag.js", - "visits_tracking_js": "var tag = new ATInternet.Tracker.Tag();", - "moncompte_url": 'https://moncompte-rec.grandlyon.com', - "help_url": "https://portail-citoyen-sau.guichet-recette.grandlyon.com/glc/", + 'environment_label': 'Site de test', + 'smarttag_js': 'https://tag.aticdn.net/586793/smarttag.js', + 'visits_tracking_js': 'var tag = new ATInternet.Tracker.Tag();', + 'moncompte_url': 'https://moncompte-rec.grandlyon.com', + 'help_url': 'https://portail-citoyen-sau.guichet-recette.grandlyon.com/glc/', } ) elif PLATFORM == 'prod': TEMPLATE_VARS.update( { - "smarttag_js": "https://tag.aticdn.net/586794/smarttag.js", - "visits_tracking_js": "var tag = new ATInternet.Tracker.Tag();", - "moncompte_url": 'https://moncompte.grandlyon.com', + 'smarttag_js': 'https://tag.aticdn.net/586794/smarttag.js', + 'visits_tracking_js': 'var tag = new ATInternet.Tracker.Tag();', + 'moncompte_url': 'https://moncompte.grandlyon.com', } ) diff --git a/tests/test_hooks.py b/tests/test_hooks.py index 9eeaddb..2ef7a2e 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -88,8 +88,8 @@ def test_a2_hook_idp_oidc_modify_user_info(db, rf, app): assert value is None profile_type = ProfileType.objects.create( - name="Mandataire", - slug="mandataire", + name='Mandataire', + slug='mandataire', ) profile = Profile.objects.create( profile_type=profile_type,