# spell-checker:ignore bcond pkgversion buildrequires autosetup PYTHONPATH noarch buildroot bindir sitelib numprocesses clib # All tests require Internet access # to test in mock use: --enable-network --with check # to test in a privileged environment use: # --with check --with privileged_tests %bcond_with check %bcond_with privileged_tests Name: ansible-lint Version: 26.11.1.dev17 Release: 1.20261123052421558294.pr5222.17.g9dcdc9e8%{?dist} Summary: Ansible-lint checks ansible content for common mistakes License: GPL-3.0-or-later AND MIT URL: https://github.com/ansible/ansible-lint Source0: ansible_lint-26.11.1.dev17.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel %if %{with check} # These are required for tests: BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-xdist BuildRequires: python%{python3_pkgversion}-libselinux BuildRequires: git-core %endif Requires: git-core %description Ansible-lint checks ansible content for practices and behaviors that could potentially be improved. %prep %autosetup -n ansible_lint-26.11.1.dev17 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files ansiblelint %check # Don't try to import tests that import pytest which isn't available at runtime %pyproject_check_import -e 'ansiblelint.testing*' -e 'ansiblelint.rules.conftest' %if %{with check} %pytest \ -v \ --disable-pytest-warnings \ --numprocesses=auto \ %if %{with privileged_tests} tests %else tests/unit %endif %endif %files -f %{pyproject_files} %{_bindir}/ansible-lint %license COPYING docs/licenses/LICENSE.mit.txt %doc docs/ README.md %changelog * Mon Nov 23 2026 Packit - 26.11.1.dev17-1.20261123052421558294.pr5222.17.g9dcdc9e8 - fix: define constant for meta.yml file names (Nerothank) - fix: actually use stdin on role from stdin test (Nerothank) - chore: test role name on stdin and no meta (Nerothank) - fix: prefer meta.yml from local role folder (Nerothank) - fix: handle invalid truthy value in meta.yml (Nerothank) - chore: test cases for invalid meta.yml (Nerothank) - fix: invalid meta.yml no longer breaks Lintable (Nerothank) - fix: only consider string values for role name (Nerothank) - fix: correctly handle null-value for galaxy_info (Nerothank) - fix: do not try assigning role name on stdin (Nerothank) - fix: refactor Lintable's init to reduce complexity (Nerothank) - chore: add tests for role name from meta (Nerothank) - feat: support determining role name from meta (Nerothank) - fix: keep indentation of anchored mappings in nested sequences during --fix (#5255) (Didenko Vadim) - fix: detect uv tool environments by their receipt in path_inject() (#5220) (nervo) - fix: avoid injecting the same directory twice in path_inject() (#5214) (Huzaifa Farooq) - fix: correct misplaced keywords in role meta schema (#5195) (Forsyth Famous .O)