ansible-community / ansible-pygments

Provides Pygments highlighter for Ansible output for use in Sphinx

Home Page:https://pypi.org/p/ansible-pygments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.