From f721297b1f85a217b70da34cfde29753b556db6d Mon Sep 17 00:00:00 2001 From: "Mathias L. Baumann" Date: Wed, 2 Oct 2024 12:00:26 +0200 Subject: [PATCH] Also parse init files in Sybil It seems newer versions have no issue anymore with this. Signed-off-by: Mathias L. Baumann --- RELEASE_NOTES.md | 2 +- src/frequenz/repo/config/pytest/examples.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 0d5a2e91..488d11f4 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -29,7 +29,7 @@ ## Bug Fixes - +* Sybil now parses the `__init__.py` file as well. Previously it was disabled due to an upstream bug. ### Cookiecutter template diff --git a/src/frequenz/repo/config/pytest/examples.py b/src/frequenz/repo/config/pytest/examples.py index b79fbfe6..7038a7e2 100644 --- a/src/frequenz/repo/config/pytest/examples.py +++ b/src/frequenz/repo/config/pytest/examples.py @@ -228,8 +228,4 @@ def get_sybil_arguments() -> dict[str, Any]: return { "parsers": [MyPythonCodeBlockParser()], "patterns": ["*.py"], - # This is a hack because Sybil seems to have issues with `__init__.py` files. - # See https://github.com/frequenz-floss/frequenz-repo-config-python/issues/113 - # for details - "excludes": ["__init__.py"], }