misc: apply double-quote-string-fixer (#79788)

This commit is contained in:
Valentin Deniaud 2023-08-16 10:12:08 +02:00
parent 36e95e3fd6
commit 830e245665
6 changed files with 17 additions and 17 deletions

View File

@ -46,4 +46,4 @@ class EnsureJsonbType(Operation):
pass pass
def describe(self): def describe(self):
return "Migrate to postgres jsonb type" return 'Migrate to postgres jsonb type'

View File

@ -108,10 +108,10 @@ def cast_point(value, cur):
return schemas.Point._make(map(float, value[1:-1].split(','))) 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) 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) psycopg2.extensions.register_type(POINT_ARRAY)

View File

@ -43,13 +43,13 @@ DATE_RANGES = [
{ {
'value': '3_last_months', 'value': '3_last_months',
'label': _('3 last months'), 'label': _('3 last months'),
'start': "les 3 derniers mois", 'start': 'les 3 derniers mois',
'end': "maintenant", 'end': 'maintenant',
}, },
{ {
'value': 'this_year', 'value': 'this_year',
'label': _('this year'), 'label': _('this year'),
'start': "cette année", 'start': 'cette année',
'end': "l\'année prochaine", 'end': "l\'année prochaine",
}, },
{ {
@ -62,7 +62,7 @@ DATE_RANGES = [
'value': 'this_quarter', 'value': 'this_quarter',
'label': _('this quarter'), 'label': _('this quarter'),
'start': 'ce trimestre', 'start': 'ce trimestre',
'end': "le prochain trimestre", 'end': 'le prochain trimestre',
}, },
{ {
'value': 'last_quarter', 'value': 'last_quarter',

View File

@ -26,7 +26,7 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
import os import os
import sys 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 from django.core.wsgi import get_wsgi_application # noqa: E402

View File

@ -2,8 +2,8 @@
import os import os
import sys import sys
if __name__ == "__main__": if __name__ == '__main__':
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bijoe.settings") os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bijoe.settings')
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line

View File

@ -81,16 +81,16 @@ class install_lib(_install_lib):
setup( setup(
name="bijoe", name='bijoe',
version=get_version(), version=get_version(),
license="AGPLv3+", license='AGPLv3+',
description="BI daashboard from PostgreSQL start schema", description='BI daashboard from PostgreSQL start schema',
long_description=open('README.rst').read(), 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="Entr'ouvert",
author_email="authentic@listes.entrouvert.com", author_email='authentic@listes.entrouvert.com',
maintainer="Benjamin Dauvergne", maintainer='Benjamin Dauvergne',
maintainer_email="bdauvergne@entrouvert.com", maintainer_email='bdauvergne@entrouvert.com',
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
install_requires=[ install_requires=[