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
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(',')))
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)

View File

@ -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',

View File

@ -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

View File

@ -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

View File

@ -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=[