Skip to content
Snippets Groups Projects

WIP: Run pre-commit hooks during CI

@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

Checking pipeline status.

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading