Skip to content

Commit 9fcd215

Browse files
committed
black/isort update
- Update black
1 parent 0c3fcde commit 9fcd215

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.github/workflows/actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
working-directory: ./mapswipe_workers
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install flake8 black==22.3.0 isort
25+
pip install flake8 black==24.4.2 isort
2626
2727
- name: Code style
2828
working-directory: ./mapswipe_workers

mapswipe_workers/mapswipe_workers/firebase_to_postgres/archive_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Archive a project.
33
"""
4+
45
import re
56
import time
67
from typing import Iterable

mapswipe_workers/mapswipe_workers/firebase_to_postgres/delete_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Delete projects.
33
"""
4+
45
import re
56
import time
67
from typing import Iterable

mapswipe_workers/mapswipe_workers/project_types/arbitrary_geometry/project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class ArbitraryGeometryProject(BaseProject):
3030
def __init__(self, project_draft: dict) -> None:
3131
super().__init__(project_draft)
3232
self.groups: Dict[str, ArbitraryGeometryGroup] = {}
33-
self.tasks: Dict[
34-
str, List[ArbitraryGeometryTask]
35-
] = {} # dict keys are group ids
33+
self.tasks: Dict[str, List[ArbitraryGeometryTask]] = (
34+
{}
35+
) # dict keys are group ids
3636

3737
# set group size
3838
self.geometry = project_draft["geometry"]

mapswipe_workers/mapswipe_workers/project_types/media_classification/project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class MediaClassificationProject(BaseProject):
3636
def __init__(self, project_draft: dict):
3737
super().__init__(project_draft)
3838
self.groups: Dict[str, MediaClassificationGroup] = {}
39-
self.tasks: Dict[
40-
str, List[MediaClassificationTask]
41-
] = {} # dict keys are group ids
39+
self.tasks: Dict[str, List[MediaClassificationTask]] = (
40+
{}
41+
) # dict keys are group ids
4242

4343
self.mediaCredits = project_draft.get("mediaCredits", None)
4444
self.medialist = []

mapswipe_workers/mapswipe_workers/project_types/tile_map_service/project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ class TileMapServiceBaseProject(BaseProject):
4141
def __init__(self, project_draft: dict):
4242
super().__init__(project_draft)
4343
self.groups: Dict[str, TileMapServiceBaseGroup] = {}
44-
self.tasks: Dict[
45-
str, List[TileMapServiceBaseTask]
46-
] = {} # dict keys are group ids
44+
self.tasks: Dict[str, List[TileMapServiceBaseTask]] = (
45+
{}
46+
) # dict keys are group ids
4747

4848
self.geometry = project_draft["geometry"]
4949
self.zoomLevel = int(project_draft.get("zoomLevel", 18))

mapswipe_workers/mapswipe_workers/project_types/tile_map_service/tutorial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def __init__(self, tutorial_draft):
2626
super().__init__(tutorial_draft)
2727

2828
self.groups: Dict[str, TileMapServiceBaseGroup] = {}
29-
self.tasks: Dict[
30-
str, List[TileMapServiceBaseTutorialTask]
31-
] = {} # dict keys are group ids
29+
self.tasks: Dict[str, List[TileMapServiceBaseTutorialTask]] = (
30+
{}
31+
) # dict keys are group ids
3232

3333
self.zoomLevel = int(tutorial_draft.get("zoomLevel", 18))
3434
self.tileServer = vars(BaseTileServer(tutorial_draft["tileServer"]))

0 commit comments

Comments
 (0)