diff --git a/.flake8 b/.flake8 index 6976fe6..0eaae32 100644 --- a/.flake8 +++ b/.flake8 @@ -4,4 +4,4 @@ ignore = E501 show_source = True statistics = True count = True -exclude = .direnv,.git,__pycache__,venv \ No newline at end of file +exclude = .direnv,.git,__pycache__,venv,.eggs \ No newline at end of file diff --git a/Makefile b/Makefile index d8751e0..cf9405c 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,10 @@ clean: rm coverage.xml rm .coverage -test: run_tests flake type-check +ensure-no-print: + grep -r --exclude main.py --exclude '*.pyc' -i 'print' ./pyais && (echo "Debug print statement found"; exit 1)|| true + +test: run_tests flake type-check ensure-no-print install: pip install wheel diff --git a/pyais/__init__.py b/pyais/__init__.py index 1cf802a..eed1712 100644 --- a/pyais/__init__.py +++ b/pyais/__init__.py @@ -4,7 +4,7 @@ from pyais.decode import decode __license__ = 'MIT' -__version__ = '2.1.3' +__version__ = '2.1.4' __author__ = 'Leon Morten Richter' __all__ = ( diff --git a/pyais/messages.py b/pyais/messages.py index cf65c22..0025c21 100644 --- a/pyais/messages.py +++ b/pyais/messages.py @@ -540,7 +540,6 @@ def to_turn(turn: typing.Union[int, float]) -> typing.Optional[float]: elif abs(turn) == 127 or abs(turn) == 128: return None else: - print(turn, math.copysign(int((turn / 4.733) ** 2), turn)) return math.copysign(int((turn / 4.733) ** 2), turn)