{"id":19227792,"url":"https://github.com/aleksac/hadolint-py","last_synced_at":"2025-04-21T01:31:42.686Z","repository":{"id":115397009,"uuid":"321111086","full_name":"AleksaC/hadolint-py","owner":"AleksaC","description":"Run hadolint in pre-commit without docker or system installation","archived":false,"fork":false,"pushed_at":"2024-05-10T20:45:55.000Z","size":47,"stargazers_count":31,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T08:33:32.886Z","etag":null,"topics":["dockerfile-linter","hadolint","pip","pre-commit","pre-commit-hook"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AleksaC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-13T16:40:07.000Z","updated_at":"2025-02-26T10:13:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"3977bed4-3c8b-4692-9301-04b2a6b1d0b6","html_url":"https://github.com/AleksaC/hadolint-py","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksaC%2Fhadolint-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksaC%2Fhadolint-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksaC%2Fhadolint-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksaC%2Fhadolint-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AleksaC","download_url":"https://codeload.github.com/AleksaC/hadolint-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982525,"owners_count":21355709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dockerfile-linter","hadolint","pip","pre-commit","pre-commit-hook"],"created_at":"2024-11-09T15:25:13.791Z","updated_at":"2025-04-21T01:31:42.126Z","avatar_url":"https://github.com/AleksaC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hadolint-py\n\n[![Add new versions](https://github.com/AleksaC/hadolint-py/actions/workflows/add-new-versions.yml/badge.svg)](https://github.com/AleksaC/hadolint-py/actions/workflows/add-new-versions.yml)\n[![Run tests](https://github.com/AleksaC/hadolint-py/actions/workflows/tests.yml/badge.svg)](https://github.com/AleksaC/hadolint-py/actions/workflows/tests.yml)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\nA python package that provides a pip-installable\n[hadolint](https://github.com/hadolint/hadolint) binary.\n\nThe mechanism by which the binary is downloaded is basically copied from\n[shellcheck-py](https://github.com/shellcheck-py/shellcheck-py).\n\n## Getting started\n\n### Installation\n\nThe package hasn't been published to PyPI yet, and may never be, as its primary\npurpose doesn't require it. However you can install it through git:\n\n```shell script\npip install git+https://github.com/AleksaC/hadolint-py.git@v2.12.1-beta\n```\n\nTo install another version simply replace the v2.12.0 with the version you want.\n\n### With pre-commit\n\nThis package was primarily built to provide a convenient way of running hadolint\nas a [pre-commit](https://pre-commit.com) hook, since haskell isn't supported by\npre-commit. An alternative to this solution is to create a docker hook since\nhadolint provides a docker image, but I think that it has unnecessary amount of overhead.\n\nExample `.pre-commit-config.yaml` with rules `DL3025` and `DL3018` excluded:\n\n```yaml\nrepos:\n  - repo: https://github.com/AleksaC/hadolint-py\n    rev: v2.12.1b3\n    hooks:\n      - id: hadolint\n        args: [--ignore, DL3025, --ignore, DL3018]\n```\n\n## Contact 🙋‍♂️\n\n-   [Personal website](https://aleksac.me)\n-   \u003ca target=\"_blank\" href=\"http://twitter.com/aleksa_c_\"\u003e\u003cimg alt='Twitter followers' src=\"https://img.shields.io/twitter/follow/aleksa_c_.svg?style=social\"\u003e\u003c/a\u003e\n-   aleksacukovic1@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksac%2Fhadolint-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleksac%2Fhadolint-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksac%2Fhadolint-py/lists"}