`nps lint` displays `pkg_resources` warnings
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 21
- Forks
- 20
- Avg merge
- 22h 9m
- Merged PRs (30d)
- 3
Description
PS C:\dev\nitypes-python> poetry run nps lint
C:\dev\nitypes-python\.venv\Lib\site-packages\flake8_import_order\styles.py:3: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import iter_entry_points
This is with flake8-import-order 0.18.2.
It's fixed in flake8-import-order 0.19.0: https://github.com/PyCQA/flake8-import-order/issues/201
However, we've blocked upgrading of flake8-import-order for other reasons: https://github.com/ni/python-styleguide/pull/225
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the flake8-import-order constraint and the reasons documented in pull request #225. Compare version 0.18.2 with 0.19.0, then run poetry run nps lint to verify the pkg_resources warning is gone without reintroducing the issues that blocked the upgrade.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100