pre-commit-config-shellcheck is a tool for checking entry points in the pre-commit config with ShellCheck.
Contents
In order to use the tool you should first clone it from the source:
$ git clone https://github.com/Anadea/pre-commit-config-shellcheck.git
Then you should install project dependencies with
$ python ./setup.py install
or
$ pip install pre-commit-config-shellcheck
The installation is done and as simple as that.
To run the program you should start it from the terminal and provide a config file to check:
$ pre_commit_config_shellcheck.py .pre-commit-config.yaml
You could change a default ShellCheck call with directory access with the -s
or --shellcheck
argument:
$ pre_commit_config_shellcheck.py .pre-commit-config.yaml -s /bin/shellcheck
The output from tool usage is sent to the stdout or stderr depending on the operation result.
Also, it can be used as a pre-commit hook out of the box. Just add it to yours .pre-commit-config.yaml
:
- repo: "https://github.com/Anadea/pre-commit-config-shellcheck"
rev: "0.3.4"
hooks:
- id: "pre-commit-config-shellcheck"
Also, it can be used as a GitHub action out of the box. Just add it to yours workflow:
- name: "pre-commit-config-shellcheck"
uses: "actions/pre-commit-config-shellcheck@0.3.4"
id: "pre-commit-config-shellcheck"
with:
config: ".pre-commit-config.yaml"
- Fork it
- Install GNU Make
- Install and configure pyenv and pyenv-virtualenv plugin
- Install and configure direnv
- Create environment config from the example
cp .env.example .env
- Install development dependencies:
make install
- Create your fix/feature branch:
git checkout -b my-new-fix-or-feature
- Check code style and moreover:
make check
- Run tests:
make test
- Push to the branch:
git push origin my-new-fix-or-feature
pre-commit-config-shellcheck uses the MIT license. Please check the MIT-LICENSE file for more details.
Project Website: https://github.com/Anadea/pre-commit-config-shellcheck/
Author: Anadea
For contributors list see CONTRIBUTORS file.