Sourced from ruff's releases.
v0.0.284
What's Changed
This release fixes a few bugs, notably the previous release announced a breaking change where the default target Python version changed from 3.10 to 3.8 but the change was not applied. Thanks to
@rco-abletonfor fixing this in astral-sh/ruff#6444Bug Fixes
- Do not trigger
S108if path is insidetempfile.*call by@dhruvmanilain astral-sh/ruff#6416- Do not allow on zero tab width by
@tjkusonin astral-sh/ruff#6429- Fix false-positive in submodule resolution by
@charliermarshin astral-sh/ruff#6435New Contributors
@rco-abletonmade their first contribution in astral-sh/ruff#6444Full Changelog: https://github.com/astral-sh/ruff/compare/v0.0.283...v0.0.284
v0.0.283
What's Changed
Breaking Changes
- Assume Python 3.8 instead of 3.10 for target version by
@zaniebin astral-sh/ruff#6397Rules
- [
flake8-pyi]PYI019: Detects if a type variable is used instead ofSelfin return annotations by@qdegraafin astral-sh/ruff#6204- [
flake8-pyi]PYI051: Detects unions ofLiteraltypes by@LaBatata101in astral-sh/ruff#6215- [
flake8-pyi]PYI055: Detects unions oftypes by@LaBatata101in astral-sh/ruff#6316- [
pylint]E1300: Detects invalid string format characters by@silvanocerzain astral-sh/ruff#6171- [
pyupgrade]UP040: Upgrades type alias annotations to use PEP-695 syntax by@zaniebin astral-sh/ruff#6289Rule Changes
- [
flake8-boolean-trap]FBT003: Addis_andis_notto excluded functions by@zaniebin astral-sh/ruff#6307- [
flake8-logging-format] Allow capitalized names for logger candidate heuristic match by@charliermarshin astral-sh/ruff#6356- [
flake8-pyi] Applicable rules are now checked non-stub code by@anderskin astral-sh/ruff#6297
PYI013:ellipsis-in-non-empty-class-bodyPYI016:duplicate-union-memberPYI018:unused-private-type-varPYI019:custom-type-var-return-typePYI024:collections-named-tuplePYI025:unaliased-collections-abc-set-importPYI030:unnecessary-literal-unionPYI032:any-eq-ne-annotationPYI034:non-self-return-typePYI036:bad-exit-annotationPYI041:redundant-numeric-unionPYI042:snake-case-type-aliasPYI043:t-suffixed-type-aliasPYI045:iter-method-return-iterable
... (truncated)
Sourced from ruff's changelog.
Breaking Changes
0.0.283 / 0.284
The target Python version now defaults to 3.8 instead of 3.10 (#6397)
Previously, when a target Python version was not specified, Ruff would use a default of Python 3.10. However, it is safer to default to an older Python version to avoid assuming the availability of new features. We now default to the oldest supported Python version which is currently Python 3.8.
(We still support Python 3.7 but since it has reached EOL we've decided not to make it the default here.)
Note this change was announced in 0.0.283 but not active until 0.0.284.
0.0.277
.ipynb_checkpoints,.pyenv,.pytest_cache, and.vscodeare now excluded by default (#5513)Ruff maintains a list of default exclusions, which now consists of the following patterns:
.bzr.direnv.eggs.git.git-rewrite.hg.ipynb_checkpoints.mypy_cache.nox.pants.d.pyenv.pytest_cache.pytype.ruff_cache.svn.tox.venv.vscode__pypackages___buildbuck-outbuilddistnode_modulesvenvPreviously, the
.ipynb_checkpoints,.pyenv,.pytest_cache, and.vscodedirectories were not excluded by default. This change brings Ruff's default exclusions in line with other tools like Black.0.0.276
... (truncated)
3ecd263
Bump version to 0.0.284 (#6453)6acf07c
Use latest Python version by default in tests (#6448)38b9fb8
Set a default on PythonVersion (#6446)e4f5743
ci(deps): bump cloudflare/wrangler-action from 2.0.0 to 3.0.0 (#6398)6a64f22
Rename Magic* to IpyEscape* (#6395)3bf1c66
Group function definition parameters with return type annotations (#6410)eaada03
Set default version to py38 (#6444)a39dd76
Add enter and leave_node methods to Preoder
visitor (#6422)e257c5a
Add support for help end IPython escape commands (#6358)887a47c
Avoid S108 if path is inside tempfile.* call
(#6416)