Skip to content

Commit

Permalink
Add pre-commit hook to format python (Azure#1780)
Browse files Browse the repository at this point in the history
* Add pre-commit config to format with black

* Add pre-commit as dev-requirement
  • Loading branch information
kdestin committed Oct 31, 2022
1 parent 836ba64 commit 397a12c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black-jupyter
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
GitPython==3.1.17
black[jupyter]==22.6.0
pre-commit==2.*

0 comments on commit 397a12c

Please sign in to comment.