Skip to content

Python bootstrap to activate a virtual environment (venv, or conda) and run a command. Intended to be used with pre-commit pypi package. Inspired by venv-run

License

Kirusi/hook-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hook-run

Python bootstrap to activate a virtual environment (venv, or conda) and run a command. Intended to be used with pre-commit pypi package. Inspired by venv-run

Runs a command from an existing python virtual environment. Script looks for a private configuration file in the current working directory hook-run.json. If such file is found, it's expected to follow format:

{
    "path": "/home/user/my_project/venv/bin"
}

Where path points to the virtual environment to be used. If configuration file is not found, then no bootstrapping is performed, but script proceeds with command execution

After bootstrapping is done, then specified command is executed.

About

Python bootstrap to activate a virtual environment (venv, or conda) and run a command. Intended to be used with pre-commit pypi package. Inspired by venv-run

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages