Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to run and pass flake8-builtins #974

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'extras_require': {
'test': [
'flake8 < 6',
'flake8-builtins',
'flake8-comprehensions',
'pytest',
],
Expand Down
4 changes: 2 additions & 2 deletions src/rosdep2/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
except NameError:
# Python 2 compatibility
# https://stackoverflow.com/questions/21367320/
FileNotFoundError = IOError
FileNotFoundError = IOError # noqa: A001

import rospkg

Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(self, cache_dir=None):
self._cache_dir = cache_dir
self._loaded = {}

def set(self, category, metadata):
def set(self, category, metadata): # noqa: A003
"""Add or overwrite metadata in the cache."""
wrapper = CacheWrapper(category, metadata)
# print(category, metadata)
Expand Down
4 changes: 2 additions & 2 deletions src/rosdep2/sources_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def __str__(self):
def __repr__(self):
return repr((self.type, self.url, self.tags, self.rosdep_data, self.origin))

@property
def type(self):
@property # noqa: A003
def type(self): # noqa: A003
"""
:returns: data source type
"""
Expand Down
Loading