mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-22 21:46:24 +02:00
Fix code style.
This commit is contained in:
parent
2bd89a6539
commit
94f0897084
5 changed files with 15 additions and 8 deletions
|
@ -3,5 +3,8 @@ Map Machine entry point.
|
||||||
"""
|
"""
|
||||||
from map_machine.main import main
|
from map_machine.main import main
|
||||||
|
|
||||||
|
__author__ = "Sergey Vartanov"
|
||||||
|
__email__ = "me@enzet.ru"
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -20,20 +20,21 @@ from map_machine.figure import (
|
||||||
Tree,
|
Tree,
|
||||||
)
|
)
|
||||||
from map_machine.flinger import Flinger
|
from map_machine.flinger import Flinger
|
||||||
from map_machine.map_configuration import DrawingMode, MapConfiguration
|
|
||||||
|
|
||||||
# fmt: off
|
|
||||||
from map_machine.icon import (
|
from map_machine.icon import (
|
||||||
DEFAULT_SMALL_SHAPE_ID, Icon, IconSet, Shape, ShapeExtractor,
|
DEFAULT_SMALL_SHAPE_ID,
|
||||||
ShapeSpecification
|
Icon,
|
||||||
|
IconSet,
|
||||||
|
Shape,
|
||||||
|
ShapeExtractor,
|
||||||
|
ShapeSpecification,
|
||||||
)
|
)
|
||||||
|
from map_machine.map_configuration import DrawingMode, MapConfiguration
|
||||||
from map_machine.osm_reader import OSMData, OSMNode, OSMRelation, OSMWay
|
from map_machine.osm_reader import OSMData, OSMNode, OSMRelation, OSMWay
|
||||||
from map_machine.point import Point
|
from map_machine.point import Point
|
||||||
from map_machine.scheme import DEFAULT_COLOR, LineStyle, RoadMatcher, Scheme
|
from map_machine.scheme import DEFAULT_COLOR, LineStyle, RoadMatcher, Scheme
|
||||||
from map_machine.text import Label
|
from map_machine.text import Label
|
||||||
from map_machine.ui import BuildingMode
|
from map_machine.ui import BuildingMode
|
||||||
from map_machine.util import MinMax
|
from map_machine.util import MinMax
|
||||||
# fmt: on
|
|
||||||
|
|
||||||
__author__ = "Sergey Vartanov"
|
__author__ = "Sergey Vartanov"
|
||||||
__email__ = "me@enzet.ru"
|
__email__ = "me@enzet.ru"
|
||||||
|
|
|
@ -21,7 +21,7 @@ def main() -> None:
|
||||||
arguments: argparse.Namespace = parse_options(sys.argv)
|
arguments: argparse.Namespace = parse_options(sys.argv)
|
||||||
|
|
||||||
if not arguments.command:
|
if not arguments.command:
|
||||||
print("No command provided. See --help.")
|
logging.fatal("No command provided. See --help.")
|
||||||
|
|
||||||
elif arguments.command == "render":
|
elif arguments.command == "render":
|
||||||
from map_machine import mapper
|
from map_machine import mapper
|
||||||
|
|
|
@ -4,11 +4,11 @@ Test OSM XML parsing.
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from map_machine.osm_reader import (
|
from map_machine.osm_reader import (
|
||||||
|
OSMData,
|
||||||
OSMNode,
|
OSMNode,
|
||||||
OSMReader,
|
OSMReader,
|
||||||
OSMRelation,
|
OSMRelation,
|
||||||
OSMWay,
|
OSMWay,
|
||||||
OSMData,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
__author__ = "Sergey Vartanov"
|
__author__ = "Sergey Vartanov"
|
||||||
|
|
|
@ -3,6 +3,9 @@ Test zoom level specification parsing.
|
||||||
"""
|
"""
|
||||||
from map_machine.tile import ScaleConfigurationException, parse_zoom_level
|
from map_machine.tile import ScaleConfigurationException, parse_zoom_level
|
||||||
|
|
||||||
|
__author__ = "Sergey Vartanov"
|
||||||
|
__email__ = "me@enzet.ru"
|
||||||
|
|
||||||
|
|
||||||
def test_zoom_level_1() -> None:
|
def test_zoom_level_1() -> None:
|
||||||
"""Test one zoom level."""
|
"""Test one zoom level."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue