diff options
| author | Bobby <[email protected]> | 2022-11-05 02:12:06 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-05 02:12:06 -0400 |
| commit | ccad8963ece68a1b598bcce4a41f42b6d8994712 (patch) | |
| tree | 44055648faadb727006f70e1c6b5665cc3d5f7ed | |
| parent | 33d1157611299bda066dbc5ca8cdcee5ed2b84f2 (diff) | |
| download | texty-ccad8963ece68a1b598bcce4a41f42b6d8994712.tar.xz texty-ccad8963ece68a1b598bcce4a41f42b6d8994712.zip | |
feat: Added support for virtual envs
| -rwxr-xr-x | commit.sh | 12 | ||||
| -rw-r--r-- | requirements.txt | 13 |
2 files changed, 5 insertions, 20 deletions
@@ -40,12 +40,8 @@ commands() { # Example: # echo "Hello World" - # Generate Requirements.txt, delete the old one if it exists - if [ -f requirements.txt ] - then - rm requirements.txt - fi - pip3 freeze > requirements.txt + # Generate Requirements.txt + pipreqs --force . } # Default values for optional arguments @@ -136,13 +132,13 @@ fi if [[ $type =~ ^(feat|fix|docs|style|refactor|perf|test|chore|revert)$ ]] then # If type is valid, run commit function - commit $files "$message" $type $branch + commit "$files" "$message" $type $branch else # If type is invalid, prompt the to use the default type read -p "Invalid type. Do you want to use the default type "feat"? (y/n): " useDefaultType if [[ $useDefaultType =~ ^[Yy]$ ]] || [[ $useDefaultType =~ ^[Yy][Ee][Ss]$ ]] then - commit $files "$message" $type $branch + commit "$files" "$message" $type $branch else echo "Commit aborted" exit 1 diff --git a/requirements.txt b/requirements.txt index 7ee0492..d15ce5a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,12 +1 @@ -cfgv==3.3.1 -distlib==0.3.6 -filelock==3.8.0 -identify==2.5.8 -nodeenv==1.7.0 -platformdirs==2.5.2 -pre-commit==2.20.0 -pyspark==3.2.0 -PyYAML==6.0 -tk==0.1.0 -toml==0.10.2 -virtualenv==20.16.6 +requests==2.28.1 |
