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 GiteaModel
from .lister import GiteaLister
from .models import GiteaModel
return {
"models": [GiteaModel],

View file

@ -3,14 +3,15 @@
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import re
from typing import Any, Dict, List, MutableMapping, Optional, Tuple
from requests import Response
from urllib3.util import parse_url
from ..core.page_by_page_lister import PageByPageHttpLister
from .models import GiteaModel
from typing import Any, Dict, List, Tuple, MutableMapping, Optional
from requests import Response
import re
from urllib3.util import parse_url
class GiteaLister(PageByPageHttpLister):
# Template path expecting an integer that represents the page id

View file

@ -9,7 +9,6 @@ from celery import group, shared_task
from .. import utils
from .lister import GiteaLister
NBPAGES = 10

View file

@ -4,9 +4,9 @@
# See top-level LICENSE file for more information
from time import sleep
from unittest.mock import call, patch
from celery.result import GroupResult
from unittest.mock import patch, call
from swh.lister.gitea.tasks import NBPAGES
from swh.lister.utils import split_range