nautobot / cookiecutter-nautobot-app

Cookiecutter template for creating new Nautobot Apps.
https://docs.nautobot.com/projects/cookiecutter-nautobot-app/en/latest/
Apache License 2.0
16 stars 5 forks source link

filters.py and forms.py show examples of specifying fields in the filtterset and in the Form. #164

Open smk4664 opened 2 months ago

smk4664 commented 2 months ago

Environment

Observed Behavior

************* Module nautobot_dev_example.filters
nautobot_dev_example/filters.py:17:17: E4271: Use `fields = '__all__'` instead of specifying each field individually. (nb-use-fields-all)
************* Module nautobot_dev_example.forms
nautobot_dev_example/forms.py:21:17: E4271: Use `fields = '__all__'` instead of specifying each field individually. (nb-use-fields-all)

Expected Behavior

Running pylint on freshly baked cookie passes.

Steps to Reproduce

  1. Bake a new repo with Nautobot-app-v2.3.2
  2. Specify model creation when baking
  3. Run poetry lock and inv pylint.

The cookie needs to be updated to follow pylint-nautobot standards.