diff --git a/.ansible-lint b/.ansible-lint index d508a9a..79d9be9 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -3,6 +3,10 @@ offline: true +# Mock collection roles so ansible-lint doesn't error on unresolved FQCNs +mock_roles: + - ctrliq.ascender.filetree_read + # Mock collection modules so ansible-lint doesn't error on unresolved FQCNs mock_modules: - ctrliq.ascender.ad_hoc_command @@ -73,3 +77,4 @@ warn_list: - no-changed-when - command-instead-of-shell - risky-shell-pipe + - args[module] diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index ab3df15..1e2cd7c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -15,6 +15,6 @@ ## Checklist - [ ] Sanity tests pass (`ansible-test sanity`) -- [ ] Linting passes (`flake8`, `yamllint`) +- [ ] Linting passes (`ruff`, `yamllint`, `ansible-lint`) - [ ] Changelog fragment added (if user-facing change) - [ ] Documentation updated (if applicable) diff --git a/.yamllint b/.yamllint index 09f1e06..b3389b9 100644 --- a/.yamllint +++ b/.yamllint @@ -7,3 +7,8 @@ rules: allow-non-breakable-inline-mappings: true truthy: allowed-values: ['true', 'false', 'yes', 'no'] + comments: + min-spaces-from-content: 1 + octal-values: + forbid-implicit-octal: true + forbid-explicit-octal: true