-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix linter issues where needed #440
Comments
Maybe we want to address some of these issues even before #270. |
python-tuf uses ruff for linting and formatting these days and the speedup is veeery appealing. I suggest to switch here too. Now seems a good time, given that most of #270 is addressed. |
I think the original details in this issue are a little outdated but lukas's last comment is very much on the table: we've had good experiences with ruff linter in other projects and would definitely accept PRs that would move us to using ruff instead of current pylint+bandit+black+isort. This can be done in small steps (I would suggest each step to be a PR or several):
python-tuf is likely a good example off ruff usage. See e.g. how ruff is called in tox.ini: https://github.com/theupdateframework/python-tuf/blob/develop/tox.ini#L51 If you need hints on how to get started with running the linters, this is what I'd do to get started with the first step:
358 is also good: it's possible that we're just missing the py.typed file at this point but without looking into it further I'm not sure how to validate that... |
@jku Thanks for the pointers! I will start working on replacing the current pylint+bandit+black+isort with ruff and submit them in several PRs. |
blocked on #270, partially addressed by #432
Current behavior:
#439 turned on automatic linting with
pylint
andbandit
, but inline-disabled them for all existing issues, above all to not waste time on code whose future is uncertain (see #270).Expected behavior:
When resolving #270, we should not forget to address any of the remaining linter issues. They can be found by searching for the following inline code comments:
# nosec
# pylint: disable=<msg>[, <msg>, ...]
, where<msg>
is one of:The text was updated successfully, but these errors were encountered: