Skip to content

Commit 47b10b2

Browse files
corubbassbarnea
andauthored
Fix relative imports in args rule (#4216)
Co-authored-by: Sorin Sbarnea <[email protected]>
1 parent e97867b commit 47b10b2

File tree

14 files changed

+73
-4
lines changed

14 files changed

+73
-4
lines changed

.config/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ taskincludes
366366
taskshandlers
367367
templatevars
368368
templating
369+
testcollection
369370
testinfra
370371
testmon
371372
testns

.github/workflows/tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
env:
7373
# Number of expected test passes, safety measure for accidental skip of
7474
# tests. Update value if you add/remove tests.
75-
PYTEST_REQPASS: 883
75+
PYTEST_REQPASS: 884
7676
steps:
7777
- uses: actions/checkout@v4
7878
with:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ src/ansiblelint/_version.py
7272
test/eco/CODENOTIFY.html
7373
test/eco
7474
test/schemas/node_modules
75+
test/local-content
7576
.envrc
76-
collections
77+
# collections
78+
# !/collections
7779
site
7880
_readthedocs
7981
*.tmp.*

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ repos:
173173
- wcmatch
174174
exclude: >
175175
(?x)^(
176+
collections/.*|
176177
test/local-content/.*|
177178
plugins/.*
178179
)$

ansible.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[defaults]
2-
collections_path = examples/playbooks/collections
2+
collections_path = collections:examples/playbooks/collections
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ansible Collection - local.testcollection
2+
3+
Documentation for the collection.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
namespace: local
3+
name: testcollection
4+
version: 1.0.0
5+
readme: README.md
6+
authors:
7+
- your name <[email protected]>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""module_utils package."""
2+
3+
# Some value that can be imported from a module
4+
MY_STRING: str = "foo"

collections/ansible_collections/local/testcollection/plugins/module_utils/py.typed

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""modules package."""

0 commit comments

Comments
 (0)