Update code for current linters

This commit is contained in:
Marko Durkovic
2022-07-27 16:39:26 +02:00
parent 5257497a6a
commit 8333cfb971
6 changed files with 11 additions and 15 deletions
+2 -2
View File
@@ -60,13 +60,13 @@ def main() -> None:
args = parser.parse_args()
if args.dst is not None and (args.src.suffix == '.bag') == (args.dst.suffix == '.bag'):
print('Source and destination rosbag versions must differ.') # noqa: T001
print('Source and destination rosbag versions must differ.') # noqa: T201
sys.exit(1)
try:
convert(**args.__dict__)
except ConverterError as err:
print(f'ERROR: {err}') # noqa: T001
print(f'ERROR: {err}') # noqa: T201
sys.exit(1)
-2
View File
@@ -254,8 +254,6 @@ string_literal
class VisitorIDL(Visitor): # pylint: disable=too-many-public-methods
"""IDL file visitor."""
# pylint: disable=no-self-use
RULES = parse_grammar(GRAMMAR_IDL)
def __init__(self) -> None:
-2
View File
@@ -205,8 +205,6 @@ def denormalize_msgtype(typename: str) -> str:
class VisitorMSG(Visitor):
"""MSG file visitor."""
# pylint: disable=no-self-use
RULES = parse_grammar(GRAMMAR_MSG)
BASETYPES = {