Skip to content

Conversation

@rnickle
Copy link

@rnickle rnickle commented Dec 12, 2021

Added 98 additional flake8stats messages to the test, and updated the test
to pass with the new numbers.

Also ignore lines that are source file reports.
Adding a very large selection of flake8 results from
a project that had never been refactored.  The following flake8 plugins were enabled:

flake8-aaa
flake8-blind-except
flake8-broken-line
flake8-builtins
flake8-class-attributes-order
flake8-commas
flake8-comments
flake8-comprehensions
flake8-docstrings
flake8-dunder-all
flake8-expression-complexity
flake8-html
flake8-if-expr
flake8-import-order
flake8-logging-format
flake8-module-imports
flake8-module-name
flake8-pep3101
flake8-plugin-utils
flake8-polyfill
flake8-quotes
flake8-raise
flake8-rst-docstrings
flake8-secure-coding-standard
flake8-simplify
flake8-string-format
flake8-tuple
flake8-type-annotations
flake8-typehinting
flake8-typing-imports
pep8-naming
match = RE_TO_MATCH.match(line)
if not match:
warn("Line in Flake8 statistics report does not match template and will be ignored: %r" % line)
smatch = SOURCE_MATCH.match(line)
Copy link
Owner

@smarie smarie Dec 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @rnickle !
Could you please implement the suggestion I made in https://github.com/smarie/python-genbadge/pull/21/files#r751296939 and https://github.com/smarie/python-genbadge/pull/21/files#r751299039 ?

  • putting the "if match" branch first
  • adding a comment in each branch to explain and give an example of what is handled in that branch

This is to help future maintainers and editors :)
Thanks !

@smarie
Copy link
Owner

smarie commented Mar 12, 2022

Hi @rnickle , did you get a chance to look at the above comment ? so that I can merge the pr afterwards and release :)

@rnickle
Copy link
Author

rnickle commented Mar 15, 2022 via email

@smarie
Copy link
Owner

smarie commented Mar 17, 2022

Thanks ! No rush of course. I just thought that this PR was valuable and it was sad not to have it merged yet :)
Let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants