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

CI: Resolve flake8 issues in utils directory #4303

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ per-file-ignores =
# E741 ambiguous variable name 'l'
__init__.py: F401, F403
lib/init/grass.py: E722, F821, F841
utils/gitlog2changelog.py: E722, E712
man/build_check_rest.py: F403, F405
man/build_full_index_rest.py: F403, F405
man/parser_standard_options.py: F403, F405
Expand Down
8 changes: 4 additions & 4 deletions utils/gitlog2changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
author = authorList[1]
author = author[0 : len(author) - 1]
authorFound = True
except:
print("Could not parse authorList = '%s'" % (line))
except Exception as e:
print(f"Could not parse authorList = '{line}'. Error: {e!s}")

# Match the date line
elif line.startswith("Date:"):
Expand All @@ -76,8 +76,8 @@
date = dateList[1]
date = date[0 : len(date) - 1]
dateFound = True
except:
print("Could not parse dateList = '%s'" % (line))
except Exception as e:
print(f"Could not parse dateList = '{line}'. Error: {e!s}")
# The Fossil-IDs are ignored:
elif line.startswith(" Fossil-ID:") or line.startswith(" [[SVN:"):
continue
Expand Down
Loading