Commit bb1867b9 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[Format] use isort 4.2.2

parent c27e2e72
Pipeline #3506 passed with stage
in 28 seconds
...@@ -5,16 +5,14 @@ variables: ...@@ -5,16 +5,14 @@ variables:
REGISTRY: "eur0c.laas.fr:5000" REGISTRY: "eur0c.laas.fr:5000"
DOCKER_TAG: "${REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}" DOCKER_TAG: "${REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}"
test: format:
stage: test
image: python:alpine image: python:alpine
before_script: before_script:
- pip install flake8 - pip install flake8
script: script:
- flake8 - flake8 .
build: build:
stage: build
image: docker image: docker
script: script:
- docker build -t ${DOCKER_TAG} . - docker build -t ${DOCKER_TAG} .
......
import logging import logging
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from rainboard.models import Project, Robotpkg from rainboard.models import Project, Robotpkg
from rainboard.utils import SOURCES from rainboard.utils import SOURCES
......
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from rainboard.models import Project from rainboard.models import Project
......
import logging import logging
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from rainboard.models import Project from rainboard.models import Project
LICENSES = 'https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json' LICENSES = 'https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json'
......
import logging import logging
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from rainboard.models import Project from rainboard.models import Project
logger = logging.getLogger('rainboard.management.fetch') logger = logging.getLogger('rainboard.management.fetch')
......
from rainboard.models import Robotpkg
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from rainboard.models import Robotpkg
class Command(BaseCommand): class Command(BaseCommand):
......
import logging import logging
from django.core.management import call_command
from django.core.management.base import BaseCommand
import requests import requests
from django.core.management import call_command
from django.core.management.base import BaseCommand
from rainboard.models import Forge, License, Repo from rainboard.models import Forge, License, Repo
LICENSES = 'https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json' LICENSES = 'https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json'
......
...@@ -3,7 +3,6 @@ import logging ...@@ -3,7 +3,6 @@ import logging
from django.conf import settings from django.conf import settings
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from rainboard.models import Project, Robotpkg from rainboard.models import Project, Robotpkg
from rainboard.utils import update_robotpkg from rainboard.utils import update_robotpkg
......
...@@ -2,7 +2,6 @@ from django.conf import settings ...@@ -2,7 +2,6 @@ from django.conf import settings
from django.core.management import call_command from django.core.management import call_command
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from django.db.models import F, Q from django.db.models import F, Q
from rainboard.models import Branch, Forge, Project, Repo, Robotpkg from rainboard.models import Branch, Forge, Project, Repo, Robotpkg
from rainboard.utils import SOURCES, update_robotpkg from rainboard.utils import SOURCES, update_robotpkg
......
# Generated by Django 2.0.1 on 2018-02-06 18:47 # Generated by Django 2.0.1 on 2018-02-06 18:47
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import autoslug.fields import autoslug.fields
import django.db.models.deletion
import ndh.models import ndh.models
import rainboard.utils import rainboard.utils
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
......
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
import os import os
from django.db import migrations
import requests import requests
from django.db import migrations
from rainboard.utils import SOURCES from rainboard.utils import SOURCES
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
from django.db import migrations, models from django.db import migrations, models
from django.db.models import F, Q from django.db.models import F, Q
from rainboard.utils import SOURCES from rainboard.utils import SOURCES
......
# Generated by Django 2.0.5 on 2018-05-15 15:55 # Generated by Django 2.0.5 on 2018-05-15 15:55
from enum import IntEnum from enum import IntEnum
import autoslug.fields import autoslug.fields
from django.db import migrations, models from django.db import migrations, models
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
from django.db import migrations, models from django.db import migrations, models
DIST_PYTHON3 = { DIST_PYTHON3 = {
'3.4': ['14.04', 'dubnium', 'jessie'], '3.4': ['14.04', 'dubnium', 'jessie'],
'3.5': ['16.04'], '3.5': ['16.04'],
......
# Generated by Django 2.0.5 on 2018-07-10 14:55 # Generated by Django 2.0.5 on 2018-07-10 14:55
from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
......
# Generated by Django 2.0.5 on 2018-07-19 08:33 # Generated by Django 2.0.5 on 2018-07-19 08:33
from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
from django.db import migrations, models
def branch_unique_repo(apps, schema_editor): def branch_unique_repo(apps, schema_editor):
......
# Generated by Django 2.1.7 on 2019-03-07 01:27 # Generated by Django 2.1.7 on 2019-03-07 01:27
from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
......
...@@ -20,7 +20,7 @@ from django.utils.safestring import mark_safe ...@@ -20,7 +20,7 @@ from django.utils.safestring import mark_safe
from ndh.models import Links, NamedModel, TimeStampedModel from ndh.models import Links, NamedModel, TimeStampedModel
from ndh.utils import enum_to_choices, query_sum from ndh.utils import enum_to_choices, query_sum
from .utils import (SOURCES, api_next, invalid_mail, slugify_with_dots, valid_name) from .utils import SOURCES, api_next, invalid_mail, slugify_with_dots, valid_name
logger = logging.getLogger('rainboard.models') logger = logging.getLogger('rainboard.models')
......
import django_tables2 as tables
from django.urls import reverse from django.urls import reverse
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
import django_tables2 as tables
from . import models, utils from . import models, utils
......
from django.urls import include, path from django.urls import include, path
from django.views.generic import RedirectView, TemplateView from django.views.generic import RedirectView, TemplateView
from rest_framework import routers from rest_framework import routers
from . import views from . import views
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment