nautobot / pylint-nautobot

Custom Pylint Rules for Nautobot
https://docs.nautobot.com/projects/pylint-nautobot/en/latest/
Other
4 stars 0 forks source link

Code location changes checks should prefer `nautobot.apps` imports #104

Open gsnider2195 opened 2 days ago

gsnider2195 commented 2 days ago

Environment

The rules for code location changes should prefer nautobot.apps imports instead of going directly to the core apps, except when importing models. The imports provided by the apps namespace are documented in core at https://github.com/nautobot/nautobot/blob/develop/nautobot/docs/user-guide/administration/upgrading/from-v1/tables/v2-code-nautobot-app-location.yaml

Use Case

The apps namespace should be used for nautobot core imports so that code changes can happen in core without breaking apps.