Skip to content

Commit

Permalink
Automatically format code using black.
Browse files Browse the repository at this point in the history
- Format existing files automatically with black.
- New additions should run `black whynot` before merging to master
- Travis CI automatically enforces black formatting.
- Precommit hook to run black on every commit.
  • Loading branch information
millerjohnp committed Nov 23, 2019
1 parent cac8174 commit 0ca7f90
Show file tree
Hide file tree
Showing 58 changed files with 1,924 additions and 1,551 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: 19.10b0
hooks:
- id: black
language_version: python3

0 comments on commit 0ca7f90

Please sign in to comment.