You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
black (which this project is already using) is only a code formatter and doesn't catch a bunch of issues that crop up in Python code (eg. unused vars).
# Shim used to run flake from a Bazel py_testimportosimportsysfromflake8.apiimportlegacyasflake8if__name__=="__main__":
root=os.path.dirname(sys.argv[0])
os.chdir(root)
style_guide=flake8.get_style_guide()
input_files=sys.argv[1:]
report=style_guide.check_files(input_files)
assertreport.get_statistics('E') == [], 'Flake8 found violations'print("All good :)")
Description
black
(which this project is already using) is only a code formatter and doesn't catch a bunch of issues that crop up in Python code (eg. unused vars).I'd like to continue using https://github.com/thundergolfer/bazel-linting-system but it might require modifications to enable support for more than 1 'linter' to be registered for 1 language.
The text was updated successfully, but these errors were encountered: