Use src-layout for the project
webknjaz opened this issue · comments
It's basically mkdir -pv src/ && git mv sphinx_ansible_highlighter src/
+ adjust something in the poetry setup.
The reason is that otherwise pytest probably imports the in-tree code while it should be testing the thing "as installed in site-packages" instead.
If necessary, move tests under the package dir.