Description
In a similar vein to (#1087) I've run into a few other issues.
The general theme for fixes are:
- Configuration that makes existing tooling more useful
- Ensuring the (python) test suites are green1 by default
The end result? More things that just work™ and we get helpful feedback for things that don't/may not
Issues
I may split some of these out into other issues if they start looking big or a theme emerges.
Most can be individual PRs, just wanting to see them organized for now:
Pytest
Ruff
Not sure if this was intentional, but I will mention it here:
most of what ruff can do is disabled.
Is that so bad?
I'd consider that a risky combination with LLM usage, or at least more expensive to fix than having Ruff do it 😄
I'm not looking to resolve the above here, but these should be quick, uncontroversial wins:
Typing
Misc
Description
In a similar vein to (#1087) I've run into a few other issues.
The general theme for fixes are:
The end result? More things that just work™ and we get helpful feedback for things that don't/may not
Issues
I may split some of these out into other issues if they start looking big or a theme emerges.
Most can be individual PRs, just wanting to see them organized for now:
Pytest
xfailforpytest#1091strict_xfail = true(Related)importorskipfor tests with optional dependenciesfilterwarnings = ["error"]to convert unhandled warnings into errors, and eitherRuff
Not sure if this was intentional, but I will mention it here:
most of what ruff can do is disabled.
Is that so bad?
I'd consider that a risky combination with LLM usage, or at least more expensive to fix than having Ruff do it 😄
I'm not looking to resolve the above here, but these should be quick, uncontroversial wins:
RUF10*rules which fix/flag unused/invalid suppression commentsrequired-imports = ["from __future__ import annotations"]combines with this suggestion to avoid circular dependencies, where the symbols are not used at runtimeImportant
Ruff's new default rule set will fix most of this - but will be alarming in CI
Typing
tytydocuments a Recommended configuration when Coming from mypy or pyrighttyis still in beta, and for people like me that means it is missing features that (for now) make slower alternatives a better optionpyrightpyrightand fix errors #1095__all__definitions (see (chore(typing): Addpyrightand fix errors #1095 (comment)))Misc
.python-version#11023.12and the final beta for3.15is outFootnotes
Or at least yellow with expectations ↩