Skip to content

Commit 9b76f73

Browse files
committed
Skip examples linting for __init__.py files
This is because Sybil raises errors when trying to import those files, see frequenz-floss#113 for details. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 3133b63 commit 9b76f73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/frequenz/repo/config/pytest/examples.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ def get_sybil_arguments() -> dict[str, Any]:
5555
return {
5656
"parsers": [_CustomPythonCodeBlockParser()],
5757
"patterns": ["*.py"],
58+
# This is a hack because Sybil seems to have issues with `__init__.py` files.
59+
# See https://github.com/frequenz-floss/frequenz-repo-config-python/issues/113
60+
# for details
61+
"excludes": ["__init__.py"],
5862
}
5963

6064

0 commit comments

Comments
 (0)