Fix some flake8 problems

pull/66/head
Konstantin Gründger 2019-06-07 19:43:07 +02:00
rodzic 061d47bb03
commit 1eae059cf6
4 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -1 +1 @@
from ogn.client.client import AprsClient # flake8: noqa
from ogn.client.client import AprsClient # noqa: F401

Wyświetl plik

@ -1 +1 @@
from ogn.ddb.utils import get_ddb_devices # flake8: noqa
from ogn.ddb.utils import get_ddb_devices # noqa: F401

Wyświetl plik

@ -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

Wyświetl plik

@ -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,