Update code for current linters
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user