Using this project to format flake8 output makes the output hard to read for a human, and you will probably need to call flake8 without the --format a

gustavgransbo/flake8-github-annotations

submited by
Style Pass
2023-03-29 21:00:09

Using this project to format flake8 output makes the output hard to read for a human, and you will probably need to call flake8 without the --format argument when linting locally.

If you don't wish to add an extra argument to flake8 when running in CI, you can use the GithubAction rbialon/flake8-annotations, which uses regex to detect flake8 output. A drawback of this apporach is that the project currently (2023-03-29), only supports a predefined set of error code prefixes, and might not detect errors from your favourite flake8 plugin.

Leave a Comment