python: Reorder imports with isort

Related to T2610
This commit is contained in:
Antoine Lambert 2020-09-17 17:47:55 +02:00
parent d24846a957
commit 22f7181294
69 changed files with 136 additions and 168 deletions

View file

@ -4,8 +4,8 @@
def register():
from .models import GitHubModel
from .lister import GitHubLister
from .models import GitHubModel
return {
"models": [GitHubModel],

View file

@ -4,14 +4,13 @@
# See top-level LICENSE file for more information
import re
from typing import Any, Dict, List, Optional, Tuple
from typing import Any, Dict, List, Tuple, Optional
from requests import Response
from swh.lister.core.indexing_lister import IndexingHttpLister
from swh.lister.github.models import GitHubModel
from requests import Response
class GitHubLister(IndexingHttpLister):
PATH_TEMPLATE = "/repositories?since=%d"

View file

@ -2,7 +2,7 @@
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from sqlalchemy import Column, Boolean, Integer
from sqlalchemy import Boolean, Column, Integer
from swh.lister.core.models import IndexingModelBase

View file

@ -1,8 +1,8 @@
from time import sleep
from celery.result import GroupResult
from unittest.mock import patch
from celery.result import GroupResult
def test_ping(swh_scheduler_celery_app, swh_scheduler_celery_worker):
res = swh_scheduler_celery_app.send_task("swh.lister.github.tasks.ping")