-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚜 Refactors justfiles to add module support
- Loading branch information
1 parent
025bcc4
commit 628c1f6
Showing
10 changed files
with
85 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,77 @@ | ||
# ---------------------------------------------------------------- | ||
# virtualenvwrapper | ||
# virtualenvwrapper recipes | ||
# ---------------------------------------------------------------- | ||
|
||
_get_env_details: | ||
justfile := justfile_directory() + "/.justfiles/virtualenvwrapper.justfile" | ||
|
||
@_default: | ||
just --list | ||
|
||
@_fmt: | ||
just --fmt --justfile {{ justfile }} | ||
|
||
# ---------------------------------------------------------------- | ||
# virtualenvwrapper hooks | ||
# ---------------------------------------------------------------- | ||
|
||
get_env_details: | ||
#!/usr/bin/env sh | ||
rich --print "[green]get_env_details[/green]" | ||
|
||
_initialize: | ||
initialize: | ||
#!/usr/bin/env sh | ||
rich --print "[green]initialize[/green]" | ||
|
||
_postactivate: | ||
postactivate: | ||
#!/usr/bin/env sh | ||
VIRTUAL_ENV_NAME=$(basename "${VIRTUAL_ENV}") | ||
rich --print "[green]postactivate[/green]" | ||
|
||
_postdeactivate: | ||
postdeactivate: | ||
#!/usr/bin/env sh | ||
# VIRTUAL_ENV_NAME=$(basename "${VIRTUAL_ENV}") | ||
rich --print "[green]postdeactivate[/green]" | ||
|
||
_postmkproject: | ||
postmkproject: | ||
#!/usr/bin/env sh | ||
rich --print "[green]postmkproject[/green]" | ||
|
||
_postmkvirtualenv: | ||
postmkvirtualenv: | ||
#!/usr/bin/env sh | ||
rich --print "[green]postmkvirtualenv[/green]" | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade pip-tools | ||
python -m pip install --upgrade uv | ||
|
||
_postrmproject: | ||
postrmproject: | ||
#!/usr/bin/env sh | ||
rich --print "[green]postrmproject[/green]" | ||
|
||
_postrmvirtualenv: | ||
postrmvirtualenv: | ||
#!/usr/bin/env sh | ||
rich --print "[green]postrmvirtualenv[/green]" | ||
|
||
_preactivate: | ||
preactivate: | ||
#!/usr/bin/env sh | ||
# VIRTUAL_ENV_NAME=$(basename "${VIRTUAL_ENV}") | ||
rich --print "[green]preactivate[/green]" | ||
|
||
_predeactivate: | ||
predeactivate: | ||
#!/usr/bin/env sh | ||
rich --print "[green]predeactivate[/green]" | ||
|
||
_premkproject: | ||
premkproject: | ||
#!/usr/bin/env sh | ||
rich --print "[green]premkproject[/green]" | ||
|
||
_premkvirtualenv: | ||
premkvirtualenv: | ||
#!/usr/bin/env sh | ||
rich --print "[green]premkvirtualenv[/green]" | ||
|
||
_prermproject: | ||
prermproject: | ||
#!/usr/bin/env sh | ||
rich --print "[green]prermproject[/green]" | ||
|
||
_prermvirtualenv: | ||
prermvirtualenv: | ||
#!/usr/bin/env sh | ||
rich --print "[green]prermvirtualenv[/green]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
# This hook is run after a new virtualenv is activated. | ||
|
||
just --justfile=${HOME}/justfile _postmkvirtualenv | ||
just --justfile=${HOME}/justfile virtualenvwrapper::postmkvirtualenv | ||
|
||
# python -m pip install --upgrade pip | ||
# python -m pip install --upgrade pip-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
# This hook is run before every virtualenv is activated. | ||
|
||
just --justfile=${HOME}/justfile _preactivate | ||
just --justfile=${HOME}/justfile virtualenvwrapper::preactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters