Skip to content

WIP: Run pre-commit hooks during CI

Jeff May requested to merge jeff/pre-commit-check into dev

@DSASanFrancisco/portal-members

This PR includes running the python code formatter (black) on all files and fixes all code that didn't meet the flake8 linter rules.

On every subsequent pull request, the CI job will enforce that every developer is running the pre-commit hooks on every commit.

Basically, I'm doing this: https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/

  • Update the readme with instructions on how to skip blocks of code with the formatter, ignore linter errors, and resolve common linter errors
Edited by Jeff May

Merge request reports