Skip to content

Commit

Permalink
Add a pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
portante committed Oct 24, 2022
1 parent a802b0f commit 6585798
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
repos:
- repo: https://github.com/python/black.git
rev: 22.3.0
hooks:
- id: black
name: black (python3)
language_version: python3
args: ["--check"]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python3)
language_version: python3
args: ["--check"]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit

0 comments on commit 6585798

Please sign in to comment.