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

genbadge unable to read flake8 output. #29

Closed
sandeep-gh opened this issue May 11, 2023 · 3 comments
Closed

genbadge unable to read flake8 output. #29

sandeep-gh opened this issue May 11, 2023 · 3 comments

Comments

@sandeep-gh
Copy link

I have tried giving no format option, and format=html. Both of them end up with same type of error/warning.
Is this is an encoding issue?.

/home/kabiraatmonallabs/to_githubcodes/addict-tracking-changes/.nox/badges/lib/python3.11/site-packages/genbadge/utils_flake8.py:119: UserWarning: Line in Flake8 statistics report does not match template and will be ignored: '\x1b[1msrc/addict_tracking_changes/init.py\x1b[m\x1b[36m:\x1b[m30\x1b[36m:\x1b[m1\x1b[36m:\x1b[m \x1b[1m\x1b[31mE303\x1b[m too many blank lines (3)'

@smarie
Copy link
Owner

smarie commented May 22, 2023

As mentioned in https://smarie.github.io/python-genbadge/#prerequisite-a-flake8-report

You can redirect this to a file named flake8stats.txt using --tee --output-file flake8stats.txt. This is the file that we'll need to generate the badge.

This is therefore the same issue as in #28 : you probably overlooked this part of the doc ?
As for #28, I would appreciate any proposal to make the doc clearer. Maybe simply highlighting the words above in bold in the doc would make the trick ? Let me know.

Note: the doc is then quite clear afterwards too about the fact that the input is the text file:

image

@smarie
Copy link
Owner

smarie commented Jun 15, 2023

@sandeep-gh : should I consider this issue closed ?

@smarie
Copy link
Owner

smarie commented Nov 10, 2023

closing for now, feel free to reopen !

@smarie smarie closed this as completed Nov 10, 2023
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

No branches or pull requests

2 participants