Skip to content

Commit

Permalink
Remove some pylint disables
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Nov 9, 2023
1 parent 90138b2 commit e8cc736
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bugme.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def print_issue(
)


def print_issues( # pylint: disable=too-many-arguments,too-many-locals,too-many-branches
def print_issues( # pylint: disable=too-many-arguments
creds: dict[str, dict[str, str]],
urltags: list[str] | None,
time_format: str,
Expand Down Expand Up @@ -261,9 +261,8 @@ def print_issues( # pylint: disable=too-many-arguments,too-many-locals,too-many

fields = {field: len(field) for field in output_format.split(",")}
for issue in issues:
for field in "created", "updated":
if field in fields:
issue[field] = dateit(issue[field], time_format)
issue["created"] = dateit(issue["created"], time_format)
issue["updated"] = dateit(issue["updated"], time_format)
issue.files = xtags.get(issue.tag, [])
for info in issue.files:
info["date"] = dateit(info["date"], time_format) # type: ignore
Expand Down

0 comments on commit e8cc736

Please sign in to comment.