mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-02 08:09:57 +02:00
Reformat roentgen.py with Black.
This commit is contained in:
parent
be20c91951
commit
539b5879e5
1 changed files with 5 additions and 1 deletions
|
@ -121,7 +121,9 @@ def main(options) -> None:
|
|||
def check_level(x) -> bool:
|
||||
"""Draw objects on the specified level."""
|
||||
return not check_level_number(x, float(options.level))
|
||||
|
||||
else:
|
||||
|
||||
def check_level(_) -> bool:
|
||||
"""Draw objects on any level."""
|
||||
return True
|
||||
|
@ -212,7 +214,7 @@ def init_scheme() -> Scheme:
|
|||
|
||||
if __name__ == "__main__":
|
||||
|
||||
logging.basicConfig(format='%(levelname)s %(message)s', level=logging.INFO)
|
||||
logging.basicConfig(format="%(levelname)s %(message)s", level=logging.INFO)
|
||||
|
||||
options: argparse.Namespace = parse_options(sys.argv)
|
||||
|
||||
|
@ -224,6 +226,7 @@ if __name__ == "__main__":
|
|||
draw_icons()
|
||||
elif options.command == "mapcss":
|
||||
from roentgen.mapcss import write_mapcss
|
||||
|
||||
write_mapcss()
|
||||
elif options.command == "element":
|
||||
draw_element(options)
|
||||
|
@ -231,4 +234,5 @@ if __name__ == "__main__":
|
|||
server.ui(sys.argv[2:])
|
||||
elif options.command == "taginfo":
|
||||
from roentgen.taginfo import write_taginfo_project_file
|
||||
|
||||
write_taginfo_project_file(init_scheme())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue