Ansible Lint GitLab
The ansible-lint JSON output to GitLab friendly JUnit converter.
Installation
via pip:
pip install ansible-lint-gitlab
Updating
via pip:
pip install ansible-lint-gitlab --upgrade
Usage:
- You can run
ansible-lint -f jsonon your playbook(s) and pipe the output inansible-lint playbook.yml -f json | ansible-lint-gitlab -o ansible-lint-gitlab.xml
- You can use a temporary file to store the output of
ansible-lint. After that runansible-lint-gitlaband pass the generated file to itansible-lint -f json your_fancy_playbook.yml > ansible-lint.json ansible-lint-gitlab ansible-lint.json -o ansible-lint-gitlab.xml
Output
- If there are any lint errors, full JUnit XML will be created.
- If there are no errors, an empty JUnit XML will be created.
Development
This project is packaged with setuptools using a
PEP 621 [project] table in pyproject.toml — there is no setup.py. The
package version is declared dynamically and read from
src/ansible_lint_gitlab/version.py, which is the single source of truth.
Build the distribution artifacts (sdist and wheel) with the
build frontend:
pip install build
python -m build
Run the tests with pytest:
pip install pytest
pytest
Contributing
Commit messages must follow the Conventional Commits
format, since releases and the CHANGELOG.md are produced automatically by
semantic-release. See
AGENTS.md for the accepted commit types and project conventions.
License
The ansible-lint-gitlab project is distributed under the MIT license.
Metadata
Release files for ansible-lint-gitlab 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansible_lint_gitlab-1.0.1.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ansible_lint_gitlab-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / ansible_lint_gitlab-1.0.1.tar.gz
| Download URL | ansible_lint_gitlab-1.0.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e6b57a2979d3d1cfdddc41203f34dc2b03bdb49c964f8b1571b34dedf432db7
|
|
BLAKE2b-256 checksum How to use checksums |
73773d3b16478c2673c33ed10ce7fb58aa88644e9b4de6d89ac3c862d9c744e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / ansible_lint_gitlab-1.0.1-py3-none-any.whl
| Download URL | ansible_lint_gitlab-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a84484547557a32c2925cd6479e8fec2ab90361cada98e58cf27baf0f09a3399
|
|
BLAKE2b-256 checksum How to use checksums |
d73e69f709113cfc5c67904db0fc658ab27c6739503eafe1e65d303c791d50e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|