From 8b524aed1d951b98ffb8ec052e23faa462c5f210 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20M=C3=A9nager?= <herve.menager@pasteur.fr>
Date: Thu, 9 Jan 2020 22:01:13 +0100
Subject: [PATCH] black-format some celery code

WIP on #174 and #175
---
 ippisite/ippisite/__init__.py | 2 +-
 ippisite/ippisite/celery.py   | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/ippisite/ippisite/__init__.py b/ippisite/ippisite/__init__.py
index d128d39c..0165ba0d 100644
--- a/ippisite/ippisite/__init__.py
+++ b/ippisite/ippisite/__init__.py
@@ -4,4 +4,4 @@ from __future__ import absolute_import, unicode_literals
 # Django starts so that shared_task will use this app.
 from .celery import app as celery_app
 
-__all__ = ('celery_app',)
\ No newline at end of file
+__all__ = ("celery_app",)
diff --git a/ippisite/ippisite/celery.py b/ippisite/ippisite/celery.py
index 670db8ce..b335f3e3 100644
--- a/ippisite/ippisite/celery.py
+++ b/ippisite/ippisite/celery.py
@@ -3,15 +3,15 @@ import os
 from celery import Celery
 
 # set the default Django settings module for the 'celery' program.
-os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ippisite.settings')
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ippisite.settings")
 
-app = Celery('ippidb')
+app = Celery("ippidb")
 
 # Using a string here means the worker doesn't have to serialize
 # the configuration object to child processes.
 # - namespace='CELERY' means all celery-related configuration keys
 #   should have a `CELERY_` prefix.
-app.config_from_object('django.conf:settings', namespace='CELERY')
+app.config_from_object("django.conf:settings", namespace="CELERY")
 
 # Load task modules from all registered Django app configs.
 app.autodiscover_tasks()
@@ -19,4 +19,4 @@ app.autodiscover_tasks()
 
 @app.task(bind=True)
 def debug_task(self):
-    print('Request: {0!r}'.format(self.request))
\ No newline at end of file
+    print("Request: {0!r}".format(self.request))
-- 
GitLab