Open llucax opened 1 year ago
Sybil had a couple of releases since we observed this issue and disabled extracting examples from __init__.py
files, maybe it would be worth trying if the latest versions fixed this.
I did a quick test with sybil==6.1.1 and found no issues using linting in an example in an init file
As a first experiment, I'll disable the exclusion in a few repos https://github.com/frequenz-floss/frequenz-client-dispatch-python/pull/96
What happened?
Examples in
__init__.py
files are not being linted, these files are completely skipped.What did you expect instead?
Examples in
__init__.py
files should be checked.Extra information
This happens because we are explicitly excluding those files because Sybil fails to import
__init__.py
files, raising an error like:We need to investigate this and open an issue in Sybil if appropriate.