aboutsummaryrefslogtreecommitdiff
path: root/commit.sh
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-05 06:43:35 -0400
committerBobby <[email protected]>2022-11-05 06:43:35 -0400
commita498477551af4e54bfa09f5ee1d6bbaf8f6056fe (patch)
treec4ed68127b551f75e6d19f15d6fba2cad1d47782 /commit.sh
parent43823882c7ae18b19b03134fb57862a8df0ca8a1 (diff)
downloadtexty-a498477551af4e54bfa09f5ee1d6bbaf8f6056fe.tar.xz
texty-a498477551af4e54bfa09f5ee1d6bbaf8f6056fe.zip
refactor: auto sort and format code on commit
Diffstat (limited to 'commit.sh')
-rwxr-xr-xcommit.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit.sh b/commit.sh
index 405a9fc..575e237 100755
--- a/commit.sh
+++ b/commit.sh
@@ -40,6 +40,12 @@ commands() {
# Example:
# echo "Hello World"
+ # Sort imports
+ python3 -m isort .
+
+ # Format code
+ python3 -m black .
+
# Generate Requirements.txt
pipreqs --force .