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.
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:
This story includes cleaning up the code first to pass these checks locally.