Skip to main content

Python wrapper around invoking actionlint (https://github.com/rhysd/actionlint)

Project description

actionlint-py

A python wrapper to provide a pip-installable actionlint binary.

Internally this package provides a convenient way to download the pre-built actionlint binary for your particular platform.

Installation

pip install actionlint-py

Usage

After installation, the actionlint binary should be available in your environment (or actionlint.exe on windows).

As a pre-commit hook

See pre-commit for instructions

Sample .pre-commit-config.yaml:

- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
  rev: v1.6.25
  hooks:
    - id: actionlint

or to avoid going twice to internet (might help with proxy):

- repo: local
  hooks:
    - id: actionlint
      name: actionlint
      description: Test yaml scripts with actionlint
      #      additional_dependencies: [actionlint-py==1.6.22.2] # safer, but pre-commit autoupdate will not work
      additional_dependencies: [ actionlint-py ]
      entry: actionlint
      #      args: [-ignore "*.set-output. was depracated.*"]
      language: python
      types: [ "yaml" ]
      files: "^.github/workflows/"

Development

Development of wrapper and releasing new version: see README-DEV.md

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

actionlint_py-1.6.25.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

actionlint_py-1.6.25.2-py2.py3-none-win_amd64.whl (1.9 MB view hashes)

Uploaded Python 2 Python 3 Windows x86-64

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