Skip to content

Commit

Permalink
removes debug statement (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
M0r13n committed Jul 14, 2022
1 parent 6ab9ad7 commit 175b750
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ignore = E501
show_source = True
statistics = True
count = True
exclude = .direnv,.git,__pycache__,venv
exclude = .direnv,.git,__pycache__,venv,.eggs
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyais/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pyais.decode import decode

__license__ = 'MIT'
__version__ = '2.1.3'
__version__ = '2.1.4'
__author__ = 'Leon Morten Richter'

__all__ = (
Expand Down
1 change: 0 additions & 1 deletion pyais/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 175b750

Please sign in to comment.