mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-12 00:26:49 +02:00
Fix pydocstyle warnings.
This commit is contained in:
parent
a5f9964d6d
commit
80aa4b1680
35 changed files with 35 additions and 105 deletions
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Color utility."""
|
||||||
Color utility.
|
|
||||||
"""
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from colour import Color
|
from colour import Color
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Construct Map Machine nodes and ways."""
|
||||||
Construct Map Machine nodes and ways.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
"""
|
"""Documentation utilities."""
|
||||||
Documentation utilities.
|
|
||||||
"""
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Special icon collections for documentation."""
|
||||||
Special icon collections for documentation.
|
|
||||||
"""
|
|
||||||
import json
|
import json
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Draw test nodes, ways, and relations."""
|
||||||
Draw test nodes, ways, and relations.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Icon grids for documentation."""
|
||||||
Icon grids for documentation.
|
|
||||||
"""
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Iterable
|
from typing import Iterable
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Moire markup extension for Map Machine."""
|
||||||
Moire markup extension for Map Machine.
|
|
||||||
"""
|
|
||||||
import argparse
|
import argparse
|
||||||
from abc import ABC
|
from abc import ABC
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Actions to perform before commit: generate PNG images for documentation."""
|
||||||
Actions to perform before commit: generate PNG images for documentation.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Automate OpenStreetMap wiki editing."""
|
||||||
Automate OpenStreetMap wiki editing.
|
|
||||||
"""
|
|
||||||
import re
|
import re
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Drawing utility."""
|
||||||
Drawing utility.
|
|
||||||
"""
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional, Union
|
from typing import Optional, Union
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Drawing separate map elements."""
|
||||||
Drawing separate map elements.
|
|
||||||
"""
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Buildings on the map."""
|
||||||
Buildings on the map.
|
|
||||||
"""
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from colour import Color
|
from colour import Color
|
||||||
from svgwrite import Drawing
|
from svgwrite import Drawing
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Crater on the map."""
|
||||||
Crater on the map.
|
|
||||||
"""
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from colour import Color
|
from colour import Color
|
||||||
from svgwrite import Drawing
|
from svgwrite import Drawing
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Direction tag support."""
|
||||||
Direction tag support.
|
|
||||||
"""
|
|
||||||
from typing import Iterator, Optional
|
from typing import Iterator, Optional
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""WIP: road shape drawing."""
|
||||||
WIP: road shape drawing.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Figures displayed on the map."""
|
||||||
Figures displayed on the map.
|
|
||||||
"""
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from map_machine.geometry.flinger import Flinger
|
from map_machine.geometry.flinger import Flinger
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Rectangle that limit space on the map."""
|
||||||
Rectangle that limit space on the map.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Geo projection."""
|
||||||
Geo projection.
|
|
||||||
"""
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Vector utility."""
|
||||||
Vector utility.
|
|
||||||
"""
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
__author__ = "Sergey Vartanov"
|
__author__ = "Sergey Vartanov"
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Map Machine entry point."""
|
||||||
Map Machine entry point.
|
|
||||||
"""
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Map drawing configuration."""
|
||||||
Map drawing configuration.
|
|
||||||
"""
|
|
||||||
import argparse
|
import argparse
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""MapCSS scheme creation."""
|
||||||
MapCSS scheme creation.
|
|
||||||
"""
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Simple OpenStreetMap renderer."""
|
||||||
Simple OpenStreetMap renderer.
|
|
||||||
"""
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Getting OpenStreetMap data from the web."""
|
||||||
Getting OpenStreetMap data from the web.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Parse OSM XML file."""
|
||||||
Parse OSM XML file.
|
|
||||||
"""
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
"""
|
"""Icons and points."""
|
||||||
Icons and points.
|
|
||||||
"""
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Extract icons from SVG file."""
|
||||||
Extract icons from SVG file.
|
|
||||||
"""
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Icon grid drawing."""
|
||||||
Icon grid drawing.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
import shutil
|
import shutil
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Point: node representation on the map."""
|
||||||
Point: node representation on the map.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Map Machine drawing scheme."""
|
||||||
Map Machine drawing scheme.
|
|
||||||
"""
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Map Machine tile server for slippy maps."""
|
||||||
Map Machine tile server for slippy maps.
|
|
||||||
"""
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""OSM address tag processing."""
|
||||||
OSM address tag processing.
|
|
||||||
"""
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Command-line user interface."""
|
||||||
Command-line user interface.
|
|
||||||
"""
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from map_machine import __version__
|
from map_machine import __version__
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Utility file."""
|
||||||
Utility file.
|
|
||||||
"""
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""File and directory path in the project."""
|
||||||
File and directory path in the project.
|
|
||||||
"""
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
__author__ = "Sergey Vartanov"
|
__author__ = "Sergey Vartanov"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue