diff --git a/ogn/client/__init__.py b/ogn/client/__init__.py index f83225b..48fb852 100644 --- a/ogn/client/__init__.py +++ b/ogn/client/__init__.py @@ -1 +1 @@ -from ogn.client.client import AprsClient # flake8: noqa +from ogn.client.client import AprsClient # noqa: F401 diff --git a/ogn/ddb/__init__.py b/ogn/ddb/__init__.py index e96fbbd..7e74f8a 100644 --- a/ogn/ddb/__init__.py +++ b/ogn/ddb/__init__.py @@ -1 +1 @@ -from ogn.ddb.utils import get_ddb_devices # flake8: noqa +from ogn.ddb.utils import get_ddb_devices # noqa: F401 diff --git a/ogn/parser/__init__.py b/ogn/parser/__init__.py index 2f410e2..7e0f479 100644 --- a/ogn/parser/__init__.py +++ b/ogn/parser/__init__.py @@ -1,3 +1,3 @@ -from ogn.parser import parse as parse_module # only for test functions. Without this a mock of parse would mock the function instead of the module -from ogn.parser.parse import parse, parse_aprs, parse_comment # flake8: noqa -from ogn.parser.exceptions import ParseError, AprsParseError, OgnParseError # flake8: noqa +from ogn.parser import parse as parse_module # noqa: F40 --- only for test functions. Without this a mock of parse would mock the function instead of the module +from ogn.parser.parse import parse, parse_aprs, parse_comment # noqa: F401 +from ogn.parser.exceptions import ParseError, AprsParseError, OgnParseError # noqa: F401 diff --git a/ogn/parser/parse.py b/ogn/parser/parse.py index 75687f1..d46908e 100644 --- a/ogn/parser/parse.py +++ b/ogn/parser/parse.py @@ -68,10 +68,10 @@ def parse_aprs(message, reference_timestamp=None): 'relay': match.group('relay') if match.group('relay') else None, 'receiver_name': match.group('receiver'), 'timestamp': createTimestamp(match_position.group('time'), reference_timestamp), - 'latitude': parseAngle('0' + match_position.group('latitude') + (match_position.group('latitude_enhancement') or '0')) * + 'latitude': parseAngle('0' + match_position.group('latitude') + (match_position.group('latitude_enhancement') or '0')) * # noqa: W504 (-1 if match_position.group('latitude_sign') == 'S' else 1), 'symboltable': match_position.group('symbol_table'), - 'longitude': parseAngle(match_position.group('longitude') + (match_position.group('longitude_enhancement') or '0')) * + 'longitude': parseAngle(match_position.group('longitude') + (match_position.group('longitude_enhancement') or '0')) * # noqa: W504 (-1 if match_position.group('longitude_sign') == 'W' else 1), 'symbolcode': match_position.group('symbol'), 'track': int(match_position.group('course')) if match_position.group('course_extension') else None,