Add UTMCoordinate class

- the class is a utility to abstract working with latitude-longitude
  coordinates in their UTM representation (~ "cartesian plane")
- the class's .x and .y properties enable working with simple x-y
  coordinates where the (0, 0) origin is the lower-left of a city's
  viewport
This commit is contained in:
Alexander Hess 2021-01-02 14:31:59 +01:00
commit 6f9935072e
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
5 changed files with 347 additions and 0 deletions

View file

@ -149,6 +149,8 @@ per-file-ignores =
S311,
# Shadowing outer scopes occurs naturally with mocks.
WPS442,
# Test names may be longer than 40 characters.
WPS118,
# Modules may have many test cases.
WPS202,WPS204,WPS214,
# Do not check for Jones complexity in the test suite.
@ -167,6 +169,9 @@ per-file-ignores =
# Source: https://en.wikipedia.org/wiki/Cyclomatic_complexity#Limiting_complexity_during_development
max-complexity = 10
# Allow more than wemake-python-styleguide's 7 methods per class.
max-methods = 12
# Comply with black's style.
# Source: https://github.com/psf/black/blob/master/docs/the_black_code_style.md#line-length
max-line-length = 88
@ -238,6 +243,8 @@ ignore_missing_imports = true
ignore_missing_imports = true
[mypy-sqlalchemy.*]
ignore_missing_imports = true
[mypy-utm.*]
ignore_missing_imports = true
[pylint.FORMAT]