Skip to content

Commit

Permalink
feat(dri-1032): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vkeyboardv committed May 30, 2024
1 parent 1b44716 commit 88300eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/corva_unit_converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_unit_definition(self, source, unit, measure):
return definition

def convert(self, unit_from: str, unit_to: str, # noqa: CCR001, CFQ004
value: Union[int, float], measure: str = None):
value: Union[int, float], measure: Union[str, None] = None):
"""Main function"""
if measure is not None and measure not in measures:
invalid_measure_msg = (
Expand Down
1 change: 1 addition & 0 deletions tests/test_converter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from unittest.mock import patch

from src.corva_unit_converter.converter import Converter


Expand Down

0 comments on commit 88300eb

Please sign in to comment.