-
Notifications
You must be signed in to change notification settings - Fork 18
Incorporated my flake8stats.txt with many more warnings. #22
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
base: main
Are you sure you want to change the base?
Conversation
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) |
There was a problem hiding this comment.
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 !
|
Hi @rnickle , did you get a chance to look at the above comment ? so that I can merge the pr afterwards and release :) |
|
Forgive me, I did see it and I worked on it, but I didn't close on it. I will try to find some time this week!
Thank you,
Rick
…-- ***@***.***
________________________________
From: Sylvain Marié ***@***.***>
Sent: Saturday, March 12, 2022 9:16 AM
To: smarie/python-genbadge ***@***.***>
Cc: rnickle ***@***.***>; Mention ***@***.***>
Subject: Re: [smarie/python-genbadge] Incorporated my flake8stats.txt with many more warnings. (PR #22)
Hi @rnickle<https://github.com/rnickle> , did you get a chance to look at the above comment ? so that I can merge the pr afterwards and release :)
—
Reply to this email directly, view it on GitHub<#22 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHZ3SAWIWF6BAFKKCPI6WWTU7SRKDANCNFSM5J3XZJJQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
Thanks ! No rush of course. I just thought that this PR was valuable and it was sad not to have it merged yet :) |
Added 98 additional flake8stats messages to the test, and updated the test
to pass with the new numbers.