Skip to content

Commit

Permalink
black/isort update
Browse files Browse the repository at this point in the history
- Update black
  • Loading branch information
thenav56 committed Jul 31, 2024
1 parent 0c3fcde commit 9fcd215
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
working-directory: ./mapswipe_workers
run: |
python -m pip install --upgrade pip
pip install flake8 black==22.3.0 isort
pip install flake8 black==24.4.2 isort
- name: Code style
working-directory: ./mapswipe_workers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Archive a project.
"""

import re
import time
from typing import Iterable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Delete projects.
"""

import re
import time
from typing import Iterable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class ArbitraryGeometryProject(BaseProject):
def __init__(self, project_draft: dict) -> None:
super().__init__(project_draft)
self.groups: Dict[str, ArbitraryGeometryGroup] = {}
self.tasks: Dict[
str, List[ArbitraryGeometryTask]
] = {} # dict keys are group ids
self.tasks: Dict[str, List[ArbitraryGeometryTask]] = (
{}
) # dict keys are group ids

# set group size
self.geometry = project_draft["geometry"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class MediaClassificationProject(BaseProject):
def __init__(self, project_draft: dict):
super().__init__(project_draft)
self.groups: Dict[str, MediaClassificationGroup] = {}
self.tasks: Dict[
str, List[MediaClassificationTask]
] = {} # dict keys are group ids
self.tasks: Dict[str, List[MediaClassificationTask]] = (
{}
) # dict keys are group ids

self.mediaCredits = project_draft.get("mediaCredits", None)
self.medialist = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class TileMapServiceBaseProject(BaseProject):
def __init__(self, project_draft: dict):
super().__init__(project_draft)
self.groups: Dict[str, TileMapServiceBaseGroup] = {}
self.tasks: Dict[
str, List[TileMapServiceBaseTask]
] = {} # dict keys are group ids
self.tasks: Dict[str, List[TileMapServiceBaseTask]] = (
{}
) # dict keys are group ids

self.geometry = project_draft["geometry"]
self.zoomLevel = int(project_draft.get("zoomLevel", 18))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def __init__(self, tutorial_draft):
super().__init__(tutorial_draft)

self.groups: Dict[str, TileMapServiceBaseGroup] = {}
self.tasks: Dict[
str, List[TileMapServiceBaseTutorialTask]
] = {} # dict keys are group ids
self.tasks: Dict[str, List[TileMapServiceBaseTutorialTask]] = (
{}
) # dict keys are group ids

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

0 comments on commit 9fcd215

Please sign in to comment.