konveyor / tackle-data-gravity-insights

Apache License 2.0
15 stars 12 forks source link

Add flake8 checks to CI #42

Closed rofrano closed 2 years ago

rofrano commented 2 years ago

In order to maintain good code hygiene with multiple contributors to the codebase, we should implement some flake8 checks in the CI. The recommendation is to add the following:

- name: Linting
  run: |
    # stop the build if there are Python syntax errors or undefined names
    flake8 dgi --count --select=E9,F63,F7,F82 --show-source --statistics
    # The GitHub editor is 127 chars wide
    flake8 dgi --count --max-complexity=10 --max-line-length=127 --statistics

This story includes cleaning up the code first to pass these checks locally.