pre-commit-config-shellcheck is a tool for checking entry points in the pre-commit config with ShellCheck.
Installation
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.
Usage
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.
Usage as a pre-commit hook
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"
Usage as GitHub action
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"
Contributing
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
Licensing
pre-commit-config-shellcheck uses the MIT license. Please check the MIT-LICENSE file for more details.
Contacts
Project Website: https://github.com/Anadea/pre-commit-config-shellcheck/
Author: Anadea
For contributors list see CONTRIBUTORS file.
Metadata
Release files for pre-commit-config-shellcheck 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pre-commit-config-shellcheck-0.3.4.zip | 16.3 kB | Without provenance | Details for pre-commit-config-shellcheck-0.3.4.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pre_commit_config_shellcheck-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for pre_commit_config_shellcheck-0.3.4-py3-none-any.whl |
Total release size: 23.9 kB
Release files / pre-commit-config-shellcheck-0.3.4.zip
| Download URL | pre-commit-config-shellcheck-0.3.4.zip |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8103d9ab2b8553f91883ccb883535e92dd5ec2500cca8c97ba8f7d829aa83725
|
|
BLAKE2b-256 checksum How to use checksums |
3b09214fd44f7e7c8e95886484f3251b167fc23745ff7c4525184ad16c7a30e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / pre_commit_config_shellcheck-0.3.4-py3-none-any.whl
| Download URL | pre_commit_config_shellcheck-0.3.4-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12c114e2ac3ca6378d2cb2a90f7a573480a99e100ef689eaa9a15c9edc82df63
|
|
BLAKE2b-256 checksum How to use checksums |
1d525de2d6e555f7b7f520fc5c13f723fde7824ab708effbc959edc2c6a8e4a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for pre-commit-config-shellcheck 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.