Commit c04cc06fbfdacd27a039dd62c2de184f1e53da2d
1 parent
f2be76e1
Exists in
master
and in
34 other branches
Fix flake8
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
colab/plugins/gitlab/data_api.py
@@ -9,7 +9,7 @@ from django.conf import settings | @@ -9,7 +9,7 @@ from django.conf import settings | ||
9 | from django.db.models.fields import DateTimeField | 9 | from django.db.models.fields import DateTimeField |
10 | 10 | ||
11 | from colab.plugins.gitlab.models import (GitlabProject, GitlabMergeRequest, | 11 | from colab.plugins.gitlab.models import (GitlabProject, GitlabMergeRequest, |
12 | - GitlabComment, GitlabIssue) | 12 | + GitlabComment, GitlabIssue) |
13 | from colab.plugins.utils.proxy_data_api import ProxyDataAPI | 13 | from colab.plugins.utils.proxy_data_api import ProxyDataAPI |
14 | 14 | ||
15 | LOGGER = logging.getLogger('colab.plugin.gitlab') | 15 | LOGGER = logging.getLogger('colab.plugin.gitlab') |
colab/plugins/management/commands/import_proxy_data.py
@@ -16,7 +16,8 @@ class Command(BaseCommand): | @@ -16,7 +16,8 @@ class Command(BaseCommand): | ||
16 | print "Executing extraction command..." | 16 | print "Executing extraction command..." |
17 | 17 | ||
18 | for module_name in settings.PROXIED_APPS.keys(): | 18 | for module_name in settings.PROXIED_APPS.keys(): |
19 | - module_path = 'colab.plugins.{}.data_api'.format(module_name.split('.')[-1]) | 19 | + module_path = \ |
20 | + 'colab.plugins.{}.data_api'.format(module_name.split('.')[-1]) | ||
20 | module = importlib.import_module(module_path) | 21 | module = importlib.import_module(module_path) |
21 | 22 | ||
22 | for module_item_name in dir(module): | 23 | for module_item_name in dir(module): |
colab/settings.py
@@ -317,7 +317,7 @@ for app_name, app in COLAB_APPS.items(): | @@ -317,7 +317,7 @@ for app_name, app in COLAB_APPS.items(): | ||
317 | TEMPLATE_CONTEXT_PROCESSORS += (context_processor,) | 317 | TEMPLATE_CONTEXT_PROCESSORS += (context_processor,) |
318 | 318 | ||
319 | colab_templates = locals().get('COLAB_TEMPLATES') or {} | 319 | colab_templates = locals().get('COLAB_TEMPLATES') or {} |
320 | -colab_statics = locals().get('COLAB_STATICS') or {} | 320 | +colab_statics = locals().get('COLAB_STATICS') or {} |
321 | 321 | ||
322 | TEMPLATE_DIRS += tuple(colab_templates) | 322 | TEMPLATE_DIRS += tuple(colab_templates) |
323 | STATICFILES_DIRS += tuple(colab_statics) | 323 | STATICFILES_DIRS += tuple(colab_statics) |