Skip to main content

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

Project description

hadolint-pre-commit

PyPI version

A pre-commit hook for hadolint that automatically downloads and installs the hadolint binary — no manual installation required.

Usage

Add the following to your .pre-commit-config.yaml:

repos:
  - repo: https://github.com/shenxianpeng/hadolint-pre-commit
    rev: v2.14.0.1
    hooks:
      - id: hadolint

Run pre-commit install and the hadolint binary will be downloaded and installed automatically.

How it works

This package ships the hadolint binary via PyPI using setuptools-download. When pip install hadolint-py is run (which pre-commit does automatically), the appropriate pre-built binary for your platform is downloaded from the official hadolint GitHub releases and placed in your environment's bin/ directory (or Scripts/ on Windows).

Supported platforms:

OS Architecture
Linux x86_64
Linux arm64
macOS x86_64
macOS arm64
Windows x86_64

Install as a standalone tool

pip install hadolint-py
hadolint --version

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

hadolint_py-2.14.0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hadolint_py-2.14.0.1-py3-none-win_amd64.whl (15.4 MB view details)

Uploaded Python 3Windows x86-64

hadolint_py-2.14.0.1-py3-none-manylinux_2_17_x86_64.whl (11.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

hadolint_py-2.14.0.1-py3-none-manylinux_2_17_aarch64.whl (12.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

hadolint_py-2.14.0.1-py3-none-macosx_10_15_universal2.whl (21.0 MB view details)

Uploaded Python 3macOS 10.15+ universal2 (ARM64, x86-64)

File details

Details for the file hadolint_py-2.14.0.1.tar.gz.

File metadata

  • Download URL: hadolint_py-2.14.0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hadolint_py-2.14.0.1.tar.gz
Algorithm Hash digest
SHA256 a7a949dcfd1cda1e6ec6bf62c0f66f61519ed5f74da015d9592e62a1a76cfb91
MD5 0e2244f3a204c0eb8804db1205130221
BLAKE2b-256 8a3f13a80a4b3d9f602e7deda10e943d198caa2752f59773de59afbd2e7b9b11

See more details on using hashes here.

Provenance

The following attestation bundles were made for hadolint_py-2.14.0.1.tar.gz:

Publisher: publish.yml on shenxianpeng/hadolint-pre-commit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hadolint_py-2.14.0.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for hadolint_py-2.14.0.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 825e19deed50d2e42f50efb7e0d6c411b609e58e682afd1a8e6b2daeca109697
MD5 af2591a26c18c48702e272c185e045c9
BLAKE2b-256 6add98f578a78c3f8fd541c167ed7c33547c67883b3213dcf32584a5b7cea1d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for hadolint_py-2.14.0.1-py3-none-win_amd64.whl:

Publisher: publish.yml on shenxianpeng/hadolint-pre-commit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hadolint_py-2.14.0.1-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for hadolint_py-2.14.0.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1f1dedb223c41f55b09bfcd5e2738175458dc0e1c119b3a48c52c3fcbced3bf1
MD5 557b48dbfe2363b3d386048099810424
BLAKE2b-256 b5ecc3ae74bd2f3d06a91fda0a907df269a2c7edbab78c62342378b09fece381

See more details on using hashes here.

Provenance

The following attestation bundles were made for hadolint_py-2.14.0.1-py3-none-manylinux_2_17_x86_64.whl:

Publisher: publish.yml on shenxianpeng/hadolint-pre-commit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hadolint_py-2.14.0.1-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for hadolint_py-2.14.0.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5e8253b12b45280a90d2e0cb476c59bbc5db9eb293201f713d087ce1a4beff34
MD5 1672916eee911c8f1fe7a89cf8f21566
BLAKE2b-256 8bb9ea2d8bfda6d5f96dad91b640fccf18048b06e11599a5d7405fb853fe9d01

See more details on using hashes here.

Provenance

The following attestation bundles were made for hadolint_py-2.14.0.1-py3-none-manylinux_2_17_aarch64.whl:

Publisher: publish.yml on shenxianpeng/hadolint-pre-commit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hadolint_py-2.14.0.1-py3-none-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for hadolint_py-2.14.0.1-py3-none-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 4beaa65cc53bf27fd5faf55267c4a644786184a36efdb7bfbc912af7807dd186
MD5 238906cf6774d60d76f0de7567ec6131
BLAKE2b-256 dac9168c934801c159d61ca0deccb2e24a53f9c389a06446b70149a8f55f69da

See more details on using hashes here.

Provenance

The following attestation bundles were made for hadolint_py-2.14.0.1-py3-none-macosx_10_15_universal2.whl:

Publisher: publish.yml on shenxianpeng/hadolint-pre-commit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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