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:
REGISTRY: "eur0c.laas.fr:5000"
DOCKER_TAG: "${REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}"
test:
stage: test
format:
image: python:alpine
before_script:
- pip install flake8
script:
- flake8
- flake8 .
build:
stage: build
image: docker
script:
- docker build -t ${DOCKER_TAG} .
......
import logging
from django.core.management.base import BaseCommand
from rainboard.models import Project, Robotpkg
from rainboard.utils import SOURCES
......
from django.core.management.base import BaseCommand
from rainboard.models import Project
......
import logging
from django.core.management.base import BaseCommand
from rainboard.models import Project
LICENSES = 'https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json'
......
import logging
from django.core.management.base import BaseCommand
from rainboard.models import Project
logger = logging.getLogger('rainboard.management.fetch')
......
from rainboard.models import Robotpkg
from django.core.management.base import BaseCommand
from rainboard.models import Robotpkg
class Command(BaseCommand):
......
import logging
from django.core.management import call_command
from django.core.management.base import BaseCommand
import requests
from django.core.management import call_command
from django.core.management.base import BaseCommand
from rainboard.models import Forge, License, Repo
LICENSES = 'https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json'
......
......@@ -3,7 +3,6 @@ import logging
from django.conf import settings
from django.core.management.base import BaseCommand
from rainboard.models import Project, Robotpkg
from rainboard.utils import update_robotpkg
......
......@@ -2,7 +2,6 @@ from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
from django.db.models import F, Q
from rainboard.models import Branch, Forge, Project, Repo, Robotpkg
from rainboard.utils import SOURCES, update_robotpkg
......
# 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 django.db.models.deletion
import ndh.models
import rainboard.utils
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
......
......@@ -2,10 +2,9 @@
import os
from django.db import migrations
import requests
from django.db import migrations
from rainboard.utils import SOURCES
......
......@@ -2,7 +2,6 @@
from django.db import migrations, models
from django.db.models import F, Q
from rainboard.utils import SOURCES
......
# Generated by Django 2.0.5 on 2018-05-15 15:55
from enum import IntEnum
import autoslug.fields
from django.db import migrations, models
......
......@@ -2,7 +2,6 @@
from django.db import migrations, models
DIST_PYTHON3 = {
'3.4': ['14.04', 'dubnium', 'jessie'],
'3.5': ['16.04'],
......
# Generated by Django 2.0.5 on 2018-07-10 14:55
from django.db import migrations, models
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
......
# Generated by Django 2.0.5 on 2018-07-19 08:33
from django.db import migrations, models
import django.db.models.deletion
from django.db import migrations, models
def branch_unique_repo(apps, schema_editor):
......
# Generated by Django 2.1.7 on 2019-03-07 01:27
from django.db import migrations, models
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
......
......@@ -20,7 +20,7 @@ from django.utils.safestring import mark_safe
from ndh.models import Links, NamedModel, TimeStampedModel
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')
......
import django_tables2 as tables
from django.urls import reverse
from django.utils.safestring import mark_safe
import django_tables2 as tables
from . import models, utils
......
from django.urls import include, path
from django.views.generic import RedirectView, TemplateView
from rest_framework import routers
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