IBM / BlueXolo

BlueXolo
Apache License 2.0
19 stars 20 forks source link

Add a GitHub Action to lint Python code #301

Closed cclauss closed 4 years ago

cclauss commented 4 years ago

Add a GitHub Action to find Python syntax errors and undefined names. https://github.com/cclauss/BlueXolo/actions # These tests find and this PR fixes 26 issues.

25    F632 use ==/!= to compare str, bytes, and int literals
1     F821 undefined name 'count'
26

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 focus on runtime safety and correctness: