Skip to main content

Tool for checking entry points in the pre-commit config with ShellCheck.

Project description

GitHub Coveralls License Version Supported Python version Package format Python wheel support Package status

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pre-commit-config-shellcheck-0.3.4.zip (16.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page