forked from nicholas-gs/ros2_video_streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec5f178
commit 9a4c078
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
from ament_mypy.main import main | ||
import os | ||
|
||
import pytest | ||
from ament_mypy.main import main | ||
|
||
|
||
@pytest.mark.mypy | ||
@pytest.mark.linter | ||
def test_mypy() -> None: | ||
"""Tests mypy on this module.""" | ||
file_path = __file__.replace(f'{__name__}.py', '') | ||
config_file = os.path.join(file_path, '..', 'mypy.ini') | ||
rc = main(argv=['--config', config_file]) | ||
assert rc == 0, 'Found code style errors / warnings' | ||
config_file = os.path.join(file_path, '..', '..', '..', '..', 'mypy.ini') | ||
error_code = main(argv=['--config', config_file]) | ||
assert error_code == 0, 'Found code style errors / warnings' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters