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.9
  hooks:
    - id: actionlint

Because actionlint-py is available as source distribution, pip build system is set up to fetch binary from (public) github. It might cause problems with corporate proxy. In case of problems try this semi-manual setup:

- repo: local
  hooks:
    - id: actionlint
      name: actionlint
      description: Lint GitHub workflows with actionlint
      additional_dependencies: [ actionlint-py ]
      #additional_dependencies: [actionlint-py==1.6.25.9]
      # safer, but pre-commit autoupdate will not work
      # note: the versioning scheme is different: not "v1.6.25" but "1.6.25.9" (last number is build system version)
      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

Roadmap

  • Update tag in readme in github action when releasing new version
  • Upload also binary distribution, not only source distribution
  • Add unit tests to build system

See README-DEV.md for more TODOs.

Won't do unless asked:

  • support all platforms that actionlint supports (like freebsd)

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.9.tar.gz (9.7 kB view details)

Uploaded Source

File details

Details for the file actionlint_py-1.6.25.9.tar.gz.

File metadata

  • Download URL: actionlint_py-1.6.25.9.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for actionlint_py-1.6.25.9.tar.gz
Algorithm Hash digest
SHA256 554283f030320113f53428568e1eb322d7074cb20a19ffab7e60a87a559002bf
MD5 2ed461162579bf3d7cd189c67d91fd57
BLAKE2b-256 b4fef53a84113c7c167d6672f4cf59e9eb11c3c9ca486332a11e09c8ff9b27c7

See more details on using hashes here.

Supported by

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