ajouter le hook double-quote-string-fixer (#79788) #3
|
@ -2,3 +2,5 @@
|
|||
65d33f00b7a0e9b5c75dde1b92c1484de740030e
|
||||
# misc: apply black 22.1.0
|
||||
09e3bcf99cfbf7fbc24839fb8b44d609875430a4
|
||||
# misc: apply double-quote-string-fixer (#79788)
|
||||
830e245665197c666c7749512c6b829fd79392e0
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: double-quote-string-fixer
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.1.0
|
||||
hooks:
|
||||
|
|
|
@ -46,4 +46,4 @@ class EnsureJsonbType(Operation):
|
|||
pass
|
||||
|
||||
def describe(self):
|
||||
return "Migrate to postgres jsonb type"
|
||||
return 'Migrate to postgres jsonb type'
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
14
setup.py
14
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=[
|
||||
|
|
Loading…
Reference in New Issue