From 830e245665197c666c7749512c6b829fd79392e0 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Wed, 16 Aug 2023 10:12:08 +0200 Subject: [PATCH] misc: apply double-quote-string-fixer (#79788) --- bijoe/db_utils.py | 2 +- bijoe/engine.py | 4 ++-- bijoe/visualization/forms.py | 8 ++++---- bijoe/wsgi.py | 2 +- manage.py | 4 ++-- setup.py | 14 +++++++------- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/bijoe/db_utils.py b/bijoe/db_utils.py index 95746ad..d8f9bfc 100644 --- a/bijoe/db_utils.py +++ b/bijoe/db_utils.py @@ -46,4 +46,4 @@ class EnsureJsonbType(Operation): pass def describe(self): - return "Migrate to postgres jsonb type" + return 'Migrate to postgres jsonb type' diff --git a/bijoe/engine.py b/bijoe/engine.py index 0b57f2a..10ca478 100644 --- a/bijoe/engine.py +++ b/bijoe/engine.py @@ -108,10 +108,10 @@ def cast_point(value, cur): return schemas.Point._make(map(float, value[1:-1].split(','))) -POINT = psycopg2.extensions.new_type((600,), "POINT", cast_point) +POINT = psycopg2.extensions.new_type((600,), 'POINT', cast_point) psycopg2.extensions.register_type(POINT) -POINT_ARRAY = psycopg2.extensions.new_array_type((1017,), "POINT[]", POINT) +POINT_ARRAY = psycopg2.extensions.new_array_type((1017,), 'POINT[]', POINT) psycopg2.extensions.register_type(POINT_ARRAY) diff --git a/bijoe/visualization/forms.py b/bijoe/visualization/forms.py index 05bde09..6f69745 100644 --- a/bijoe/visualization/forms.py +++ b/bijoe/visualization/forms.py @@ -43,13 +43,13 @@ DATE_RANGES = [ { 'value': '3_last_months', 'label': _('3 last months'), - 'start': "les 3 derniers mois", - 'end': "maintenant", + 'start': 'les 3 derniers mois', + 'end': 'maintenant', }, { 'value': 'this_year', 'label': _('this year'), - 'start': "cette année", + 'start': 'cette année', 'end': "l\'année prochaine", }, { @@ -62,7 +62,7 @@ DATE_RANGES = [ 'value': 'this_quarter', 'label': _('this quarter'), 'start': 'ce trimestre', - 'end': "le prochain trimestre", + 'end': 'le prochain trimestre', }, { 'value': 'last_quarter', diff --git a/bijoe/wsgi.py b/bijoe/wsgi.py index ba5a2e5..cbbc3e7 100644 --- a/bijoe/wsgi.py +++ b/bijoe/wsgi.py @@ -26,7 +26,7 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ import os import sys -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bijoe.settings") +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bijoe.settings') from django.core.wsgi import get_wsgi_application # noqa: E402 diff --git a/manage.py b/manage.py index 08ff10a..4bdc702 100755 --- a/manage.py +++ b/manage.py @@ -2,8 +2,8 @@ import os import sys -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bijoe.settings") +if __name__ == '__main__': + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bijoe.settings') from django.core.management import execute_from_command_line diff --git a/setup.py b/setup.py index ecf60b3..b231e42 100644 --- a/setup.py +++ b/setup.py @@ -81,16 +81,16 @@ class install_lib(_install_lib): setup( - name="bijoe", + name='bijoe', version=get_version(), - license="AGPLv3+", - description="BI daashboard from PostgreSQL start schema", + license='AGPLv3+', + description='BI daashboard from PostgreSQL start schema', long_description=open('README.rst').read(), - url="http://dev.entrouvert.org/projects/publik-bi/", + url='http://dev.entrouvert.org/projects/publik-bi/', author="Entr'ouvert", - author_email="authentic@listes.entrouvert.com", - maintainer="Benjamin Dauvergne", - maintainer_email="bdauvergne@entrouvert.com", + author_email='authentic@listes.entrouvert.com', + maintainer='Benjamin Dauvergne', + maintainer_email='bdauvergne@entrouvert.com', packages=find_packages(), include_package_data=True, install_requires=[