-
Notifications
You must be signed in to change notification settings - Fork 89
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
chore: update pre-commit hooks #2313
Conversation
updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.254 → v0.0.255](astral-sh/ruff-pre-commit@v0.0.254...v0.0.255) - [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](codespell-project/codespell@v2.2.2...v2.2.4)
@jpivarski you might want to weigh in here; we have non-standard code style w.r.t truthiness. Do you want to relax that and let |
I really want ruff to let us avoid truthiness. I go with the flow on a lot of Python things that I'm ambivalent about, but this weak typing is pretty dangerous. If it's coupled with actually-checked type-checking, then it wouldn't be too bad. Maybe when we have enough type-hints to run MyPy and if some_list == []: with if some_list: As long as there's a possibility that some bug would send a I put that ignore in the project-wide pyproject.toml, but there are other ruff complaints that are worth individualized |
In all, I don't mind being more ambiguous in these cases; most of the time I would err on the side of "the Programmer should understand truthiness", and checks for Let me see which rules we need to turn on/off. |
updates: