-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
GitHub Action to lint Python code #6227
Conversation
I'm not overly a fan of autolinting nor do I personally use linters due to a lot of false positives and leading to superfluous contributions (not this one, to make it clear). I don't want to litter my code with comments that tell a linter to stop doing something since I consider it noisy. Likewise, currently my account is restricted and can't use GitHub Actions. I'll probably get that bit sorted in a few since I keep putting it off. I appreciate the PR but as it stands at the moment I need to think about it. |
Agreed. That is why I use https://flake8.pycqa.org/en/latest/user/error-codes.html On the flake8 test selection, this PR does not focus on "style violations" (the majority of flake8 error codes that psf/black can autocorrect). Instead, these tests are focus on runtime safety and correctness:
|
Right now the workflow executes a few programs like On the topic of the selected lints in particular:
I'm fine with the PR, these are just my thoughts on the matter. |
`global partial_emoji_1, partial_emoji_2`
Summary: Add a GitHub Action to lint Python code
A superset of #2487
Output: https://github.com/cclauss/discord.py/actions
Checklist