Skip to content
Snippets Groups Projects

Black: code formatting

Merged Sébastien DA ROCHA requested to merge cebash/silkaj:black into dev

Implements #94 (closed)

Uses python package pre-commit to call Black on every commit.

Needs to call pre-commit install once the repo is clone to install git hooks. Black is called on staged files. To call black on all files, use `pre-commit run --all-files'.

Commit should fail if black makes some changes.

I've added pre-commit and black in the Pipfile as dev-packages.

Edited by Moul

Merge request reports

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
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading