python: Reorder imports with isort
Related to T2610
This commit is contained in:
parent
d24846a957
commit
22f7181294
69 changed files with 136 additions and 168 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
|
||||
def register():
|
||||
from .models import GiteaModel
|
||||
from .lister import GiteaLister
|
||||
from .models import GiteaModel
|
||||
|
||||
return {
|
||||
"models": [GiteaModel],
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -9,7 +9,6 @@ from celery import group, shared_task
|
|||
from .. import utils
|
||||
from .lister import GiteaLister
|
||||
|
||||
|
||||
NBPAGES = 10
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue