Bump ruff from 0.6.1 to 0.6.3
Bumps ruff from 0.6.1 to 0.6.3.
Release notes
Sourced from ruff's releases.
0.6.3
Release Notes
Preview features
- [
flake8-simplify
] Extendopen-file-with-context-handler
to work withdbm.sqlite3
(SIM115
) (#13104)- [
pycodestyle
] DisableE741
in stub files (.pyi
) (#13119)- [
pydoclint
] AvoidDOC201
on explicit returns in functions that only returnNone
(#13064)Rule changes
- [
flake8-async
] Disable check forasyncio
before Python 3.11 (ASYNC109
) (#13023)Bug fixes
- [
FastAPI
] Avoid introducing invalid syntax in fix forfast-api-non-annotated-dependency
(FAST002
) (#13133)- [
flake8-implicit-str-concat
] Normalize octals before merging concatenated strings insingle-line-implicit-string-concatenation
(ISC001
) (#13118)- [
flake8-pytest-style
] Improve help message forpytest-incorrect-mark-parentheses-style
(PT023
) (#13092)- [
pylint
] Avoid autofix for calls that aren'tmin
ormax
as starred expression (PLW3301
) (#13089)- [
ruff
] Adddatetime.time
,datetime.tzinfo
, anddatetime.timezone
as immutable function calls (RUF009
) (#13109)- [
ruff
] Extend comment deletion forRUF100
to include trailing text fromnoqa
directives while preserving any following comments on the same line, if any (#13105)- Fix dark theme on initial page load for the Ruff playground (#13077)
Contributors
@AlexWaygood
@JonathanPlasse
@MichaReiser
@N-Wouda
@PalAditya
@arkuhn
@calumy
@carljm
@chriskrycho
@dhruvmanila
@diceroll123
@dylwil3
@renovate
@teofr
@tjkuson
@vdwees
Install ruff 0.6.3
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.6.3/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
... (truncated)
Changelog
Sourced from ruff's changelog.
0.6.3
Preview features
- [
flake8-simplify
] Extendopen-file-with-context-handler
to work withdbm.sqlite3
(SIM115
) (#13104)- [
pycodestyle
] DisableE741
in stub files (.pyi
) (#13119)- [
pydoclint
] AvoidDOC201
on explicit returns in functions that only returnNone
(#13064)Rule changes
- [
flake8-async
] Disable check forasyncio
before Python 3.11 (ASYNC109
) (#13023)Bug fixes
- [
FastAPI
] Avoid introducing invalid syntax in fix forfast-api-non-annotated-dependency
(FAST002
) (#13133)- [
flake8-implicit-str-concat
] Normalize octals before merging concatenated strings insingle-line-implicit-string-concatenation
(ISC001
) (#13118)- [
flake8-pytest-style
] Improve help message forpytest-incorrect-mark-parentheses-style
(PT023
) (#13092)- [
pylint
] Avoid autofix for calls that aren'tmin
ormax
as starred expression (PLW3301
) (#13089)- [
ruff
] Adddatetime.time
,datetime.tzinfo
, anddatetime.timezone
as immutable function calls (RUF009
) (#13109)- [
ruff
] Extend comment deletion forRUF100
to include trailing text fromnoqa
directives while preserving any following comments on the same line, if any (#13105)- Fix dark theme on initial page load for the Ruff playground (#13077)
0.6.2
Preview features
- [
flake8-simplify
] Extendopen-file-with-context-handler
to work with other standard-library IO modules (SIM115
) (#12959)- [
ruff
] Avoidunused-async
for functions with FastAPI route decorator (RUF029
) (#12938)- [
ruff
] Ignorefstring-missing-syntax
(RUF027
) forfastAPI
paths (#12939)- [
ruff
] Implement check for Decimal called with a float literal (RUF032) (#12909)Rule changes
- [
flake8-bugbear
] Update diagnostic message when expression is at the end of function (B015
) (#12944)- [
flake8-pyi
] Skip type annotations instring-or-bytes-too-long
(PYI053
) (#13002)- [
flake8-type-checking
] Always recognise relative imports as first-party (#12994)- [
flake8-unused-arguments
] Ignore unused arguments on stub functions (ARG001
) (#12966)- [
pylint
] Ignore augmented assignment forself-cls-assignment
(PLW0642
) (#12957)Server
- Show full context in error log messages (#13029)
Bug fixes
- [
pep8-naming
] Don't flagfrom
imports following conventional import names (N817
) (#12946)- [
pylint
] - Allow__new__
methods to havecls
as their first argument even if decorated with@staticmethod
forbad-staticmethod-argument
(PLW0211
) (#12958)Documentation
... (truncated)
Commits
-
ee258ca
Bump version to 0.6.3 (#13152) -
b4d9d26
Update faq.md to highlight changes to src (#13145) -
a998320
[ruff
] - extend comment deletions for unused-noqa (RUF100
) (#13105) -
770ef2a
[red-knot] support deferred evaluation of type expressions (#13131) -
c6023c0
[red-knot] Add docs on usingRAYON_NUM_THREADS
for better logging (#13140) -
df694ca
[FastAPI
] Avoid introducing invalid syntax in fix for `fast-api-non-annotat... -
2e75cfb
FormatPYI
examples in docs as.pyi
-file snippets (#13116) -
cfafaa7
[red-knot] Remove very noisy tracing call when resolvingImportFrom
stateme... -
3e9c7ad
Replace crates by dependi for VS Code Dev Container (#13125) -
81cd438
red-knot: infer and display ellipsis type (#13124) - Additional commits viewable in compare view