comdotlinux / asdf-pre-commit

pre-commit.com plugin for the https://asdf-vm.com

Home Page:https://pre-commit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asdf-pre-commit Build Lint

pre-commit plugin for the asdf version manager.

Contents

Dependencies

  • Needs at least python 3.6 or greater. You should check the version you have with : readlink -f`command -v python3`
  • bash, curl, (linux only) sha256sum: generic POSIX utilities.

Why

The Pre commit hooks seem popular and I would like to use them in as may projects as I can. However, since it is python and we need pip to install, I would like to avoid that.

Further, since there is a convininent pyzip (pyz) I can use that. And combined with asdf-vm the versioning is much easier.

Install

Plugin:

asdf plugin add pre-commit
# or
asdf plugin add https://github.com/comdotlinux/asdf-pre-commit.git

pre-commit:

# Show all installable versions
asdf list-all pre-commit

# Install specific version
asdf install pre-commit latest

# Set a version globally (on your ~/.tool-versions file)
asdf global pre-commit latest

# Now pre-commit commands are available
pre-commit -V

Check asdf readme for more instructions on how to install & manage versions.

Contributing

Contributions of any kind welcome! See the contributing guide.

Thanks goes to these contributors!

License

See LICENSE © Guruprasad Kulkarni

About

pre-commit.com plugin for the https://asdf-vm.com

https://pre-commit.com

License:MIT License


Languages

Language:Shell 100.0%