You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing a custom lint rule as described in Packaging Custom Rules, the lint is not available if installed with pip install -e ./my-custom-lint. The same lint is available (and appears in ansible-lint --list-rules) when doing pip install ./my-custom-lint.
I'm using setuptools and the editable installation mode is the thing with an __editable__ .pth file in site-packages which installs a meta-path finder. Trying all modes with --config-settings editable_mode=compat, --config-settings editable_mode=strict, --config-settings editable_mode=lenient, none of them works.
Maybe relevant: unlike the "normal" install, an editable install doesn't create files under .../site-packages/ansiblelint/rules/custom/. I didn't check how ansible-lint discovers custom rules, but perhaps an entry-point group would be worth considering.
The text was updated successfully, but these errors were encountered:
When developing a custom lint rule as described in Packaging Custom Rules, the lint is not available if installed with
pip install -e ./my-custom-lint
. The same lint is available (and appears inansible-lint --list-rules
) when doingpip install ./my-custom-lint
.I'm using setuptools and the editable installation mode is the thing with an
__editable__
.pth file in site-packages which installs a meta-path finder. Trying all modes with--config-settings editable_mode=compat
,--config-settings editable_mode=strict
,--config-settings editable_mode=lenient
, none of them works.Maybe relevant: unlike the "normal" install, an editable install doesn't create files under
.../site-packages/ansiblelint/rules/custom/
. I didn't check how ansible-lint discovers custom rules, but perhaps an entry-point group would be worth considering.The text was updated successfully, but these errors were encountered: