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

Added undescore to ignore new pydocstyle item #428

Merged
merged 5 commits into from
Jan 3, 2023
Merged
Changes from all commits
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
3 changes: 2 additions & 1 deletion ament_pep257/ament_pep257/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def generate_pep257_report(paths, excludes, ignore, select, convention, add_igno
report = []

files_dict = {}
for filename, checked_codes, ignore_decorators in files_to_check:
# Unpack 3 values for pydocstyle <= 6.1.1 and 4 values for pydocstyle >= 6.2.0
for filename, checked_codes, ignore_decorators, *_ in files_to_check:
if _filename_in_excludes(filename, excludes):
continue
files_dict[filename] = {
Expand Down