chore(dev): update dependency ruff to v0.0.281 #84
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.0.275
->0.0.281
Release Notes
astral-sh/ruff (ruff)
v0.0.281
Compare Source
What's Changed
See the release blog post for more, including detailed descriptions of any newly added rules.
New rules
flake8-pyi
] ImplementPYI018
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6018flake8-pyi
] ImplementPYI047
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6134flake8-pyi
] ImplementPYI049
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6136flake8-pyi
] ImplementPYI056
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/5959flake8-pyi
] ImplementPYI046
by @LaBatata101 in https://github.com/astral-sh/ruff/pull/6098flake8-use-pathlib
] Implementglob
(PTH207
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5939flake8-use-pathlib
] Implementos-sep-split
(PTH206
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5936pycodestyle
] ImplementE241
andE242
(tab/multiple ws after commas) by @akx in https://github.com/astral-sh/ruff/pull/6094pylint
] Implementself-assigning-variable
(W0127
) by @tjkuson in https://github.com/astral-sh/ruff/pull/6015pylint
] Implementeq-without-hash
rule (PLW1641) by @jelly in https://github.com/astral-sh/ruff/pull/5955pylint
] Implementsubprocess-popen-preexec-fn
(W1509
) by @tjkuson in https://github.com/astral-sh/ruff/pull/5978Rule changes
flake8-bugbear
] ExtendsB002
to detect unary prefix decrement operators by @tjkuson in https://github.com/astral-sh/ruff/pull/5998flake8-pytest-style
] Avoid raising PT012 for simplewith
statements by @harupy in https://github.com/astral-sh/ruff/pull/6081flake8-pytest-style
] Allow pytest.raises body to contain a single func or class definition by @harupy in https://github.com/astral-sh/ruff/pull/6083flake8-simplify
] Extend SIM118 withnot in
by @sbrugman in https://github.com/astral-sh/ruff/pull/5995perflint
] SkipPERF203
violations for multi-statement loops by @charliermarsh in https://github.com/astral-sh/ruff/pull/6145pyupgrade
] Add support forint
,float
,bool
inUP018
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6013tryceratops
] Add suggested fix forTRY201
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6008Settings
logging.Logger
re-exports vialogger-objects
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5750max-complexity
to 10 for empty McCabe settings by @charliermarsh in https://github.com/astral-sh/ruff/pull/6073pep8-naming
]: New config optionextend-ignore-names
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6169Bug Fixes
UP032
ifformat
call arguments contain multiline expressions by @harupy in https://github.com/astral-sh/ruff/pull/5971F507
false positive by @harupy in https://github.com/astral-sh/ruff/pull/5986Literal
members as expressions with__future__
by @charliermarsh in https://github.com/astral-sh/ruff/pull/6032x[:1]
-like slices in RUF015 by @charliermarsh in https://github.com/astral-sh/ruff/pull/6150self
accesses by @charliermarsh in https://github.com/astral-sh/ruff/pull/6165[
as an invalid noqa suffix by @charliermarsh in https://github.com/astral-sh/ruff/pull/5982explicit-string-concatenation
on single line by @tjkuson in https://github.com/astral-sh/ruff/pull/6028SIM102
to handle indentedelif
by @harupy in https://github.com/astral-sh/ruff/pull/6072PTH201
forPath("")
by @harupy in https://github.com/astral-sh/ruff/pull/6095SIM115
to coverpathlib.Path.open
by @harupy in https://github.com/astral-sh/ruff/pull/611--diff
for Jupyter Notebooks by @dhruvmanila in https://github.com/astral-sh/ruff/pull/6149SIM105
for non-exceptions by @sbrugman in https://github.com/astral-sh/ruff/pull/5985New Contributors
Full Changelog: astral-sh/ruff@v0.0.280...v0.0.281
v0.0.280
Compare Source
What's Changed
Bug Fixes
elif
andelse
branches during import sorting by @charliermarsh in https://github.com/astral-sh/ruff/pull/5964Full Changelog: astral-sh/ruff@v0.0.279...v0.0.280
v0.0.279
Compare Source
What's Changed
Rules
flake8-pyi
] Implement flake8-pyi's PYI026 by @LaBatata101 in https://github.com/astral-sh/ruff/pull/5844flake8-pyi
] Implement flake8-pyi'sPYI017
by @qdegraaf in https://github.com/astral-sh/ruff/pull/5895flake8-pyi
] Implement flake8-pyi'sPYI036
by @density in https://github.com/astral-sh/ruff/pull/5668flake8-pyi
] Implement flake8-pyi'sPYI041
by @density in https://github.com/astral-sh/ruff/pull/5722flake8-use-pathlib
] Implementos-path-getsize
andos-path-get(a|m|c)-time
(PTH202-205
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5835flake8-use-pathlib
] Implementpath-constructor-default-argument
(PTH201
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5833pandas-vet
] Implement constant series rule (PD101
) by @sbrugman in https://github.com/astral-sh/ruff/pull/5802pylint
] Implement Pylint'sconsider-using-in
(PLR1714
) by @tjkuson in https://github.com/astral-sh/ruff/pull/5193Rule changes
flake8-annotations
] Check forAny
in other types forANN401
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5601flake8-bugbear
] Add autofix for B004 by @density in https://github.com/astral-sh/ruff/pull/5788flake8-bugbear
] RemoveB904
's lowercase exemption by @charliermarsh in https://github.com/astral-sh/ruff/pull/5751flake8-use-pathlib
] extend PTH118 withos.sep
by @sbrugman in https://github.com/astral-sh/ruff/pull/5935pyupgrade
] Expand scope ofquoted-annotation
rule (UP037
) by @charliermarsh in https://github.com/astral-sh/ruff/pull/5766pyupgrade
] Extend PEP 604 rewrites to support some quoted annotations by @charliermarsh in https://github.com/astral-sh/ruff/pull/5725ruff
] ExpandRUF015
to include all expression types by @charliermarsh in https://github.com/astral-sh/ruff/pull/5767Bug Fixes
Enum
-and-str
subclasses for slots enforcement by @charliermarsh in https://github.com/astral-sh/ruff/pull/5749sorted
with differing arguments by @density in https://github.com/astral-sh/ruff/pull/5761incorrect-dict-iterator
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5763lint_only
aware of the source kind by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5876redefined-while-unused
violations in classes by @charliermarsh in https://github.com/astral-sh/ruff/pull/5926--add-noqa
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5727EXE001
andEXE002
on WSL by @tjkuson in https://github.com/astral-sh/ruff/pull/5735Expr::Call
branches by @charliermarsh in https://github.com/astral-sh/ruff/pull/5772SetComp
by @lkh42t in https://github.com/astral-sh/ruff/pull/5774runtime-import-in-type-checking-block
(TCH004
) behind enabled flag by @charliermarsh in https://github.com/astral-sh/ruff/pull/5789pandas-use-of-dot-read-table
rule to emit only whenread_table
is used on CSV data by @tjkuson in https://github.com/astral-sh/ruff/pull/5807NamedTuple
calls containing both a list of fields and keywords by @harupy in https://github.com/astral-sh/ruff/pull/5799noqa
warnings by @sobolevn in https://github.com/astral-sh/ruff/pull/5856respect_gitignore
when not in a git repo by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5937New Contributors
Full Changelog: astral-sh/ruff@v0.0.278...v0.0.279
v0.0.278
Compare Source
See the release blog post for more, including detailed descriptions of any newly added rules.
What's Changed
Rules
pylint
] Implementtypevar-bivariance
(PLC0131
) by @tjkuson in https://github.com/astral-sh/ruff/pull/5517flake8-pyi
] Implementunnecessary-literal-union
(PYI030
) by @zanieb in https://github.com/astral-sh/ruff/pull/5570pylint
] Implementtype-name-incorrect-variance
(PLC0105
) by @tjkuson in https://github.com/astral-sh/ruff/pull/5651ruff
] Implementunnecessary-list-allocation-for-first-element
(RUF015
) by @evanrittenhouse in https://github.com/astral-sh/ruff/pull/5549flake8-bugbear
] Implementre-sub-positional-args
(B034
) by @charliermarsh in https://github.com/astral-sh/ruff/pull/5669ruff
] Implementinvalid-index-type
(RUF016
) by @zanieb in https://github.com/astral-sh/ruff/pull/5602Settings
isort
] Add--case-sensitive
flag by @qdegraaf in https://github.com/astral-sh/ruff/pull/5539isort
] Support globbing inisort
options by @tjkuson in https://github.com/astral-sh/ruff/pull/5473Bug Fixes
str.format
calls by @harupy in https://github.com/astral-sh/ruff/pull/5638unnecessary-map
(C417
) for late-bound lambdas by @charliermarsh in https://github.com/astral-sh/ruff/pull/5520.astimezone()
by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5524noqa
directive parsing away from regex-based implementation by @charliermarsh in https://github.com/astral-sh/ruff/pull/5554# noqa
directives by @charliermarsh in https://github.com/astral-sh/ruff/pull/5571# flake8: noqa
directives by @charliermarsh in https://github.com/astral-sh/ruff/pull/5618tkinter
import convention by @tjkuson in https://github.com/astral-sh/ruff/pull/5626PERF401
if conditional depends on list var by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5603raise
throws a caught exception by @evanrittenhouse in https://github.com/astral-sh/ruff/pull/5455Union
declarations without|
to PYI016 by @zanieb in https://github.com/astral-sh/ruff/pull/5598_name_
and_value_
accesses inflake8-self
rules by @monosans in https://github.com/astral-sh/ruff/pull/5663repeated_keys()
to useComparableExpr
by @qdegraaf in https://github.com/astral-sh/ruff/pull/5696New Contributors
Full Changelog: astral-sh/ruff@v0.0.277...v0.0.278
v0.0.277
Compare Source
What's Changed
Breaking Changes
Rules
pylint
] Implement Pylinttypevar-name-mismatch
(C0132
) by @tjkuson in https://github.com/astral-sh/ruff/pull/5501Settings
ruff rule --all
subcommand (with JSON output) by @akx in https://github.com/astral-sh/ruff/pull/5059Bug Fixes
Full Changelog: astral-sh/ruff@v0.0.276...v0.0.277
v0.0.276
Compare Source
See the release blog post for more, including detailed descriptions of any newly added rules.
What's Changed
Highlights include: experimental support for linting Jupyter Notebooks.
To opt-in to linting Jupyter Notebook files, add the
*.ipynb
pattern to yourinclude
setting, like so:
This will prompt Ruff to discover Jupyter Notebook files in any specified directories, and lint them
accordingly.
Jupyter Notebook support is currently opt-in and experimental. We'd love your help testing it out.
Have feedback? Run into issues? Let us know!
New Rules
flake8-pyi
] ImplementPYI002
,PYI003
,PYI004
,PYI005
by @density in https://github.com/astral-sh/ruff/pull/5457numpy
] Implementnumpy-deprecated-function
(NPY003
) by @charliermarsh in https://github.com/astral-sh/ruff/pull/5468perflint
] Implementunnecessary-list-cast
(PERF101
) by @qdegraaf in https://github.com/astral-sh/ruff/pull/5121perflint
] Implementtry-except-in-loop
(PERF203
) by @evanrittenhouse in https://github.com/astral-sh/ruff/pull/5166perflint
] Implementmanual-list-comprehension
(PERF401
) andmanual-list-copy
(PERF402
) rules by @qdegraaf in https://github.com/astral-sh/ruff/pull/5298pylint
] Implement Pylintsingle-string-used-for-slots
(C0205
) assingle-string-slots
(PLC0205
) by @tjkuson in https://github.com/astral-sh/ruff/pull/5399Jupyter
--show-source
) by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5402--show-source
) (#5402) by @dhruvmanila in https://github.com/astral-sh/ruff/pull/5414Settings
pyupgrade
] Restore thekeep-runtime-typing
setting by @charliermarsh in https://github.com/astral-sh/ruff/pull/5470PythonVersion::Py312
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5316Bug Fixes
pydantic.BaseSettings
inmutable-class-default
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5312__slots__
assignments inmutable-class-default
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5314iteration-over-set
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5392unnecessary-encode-utf8
to fixencode
on parenthesized strings correctly by @harupy in https://github.com/astral-sh/ruff/pull/5478Final
assignments in stubs by @charliermarsh in https://github.com/astral-sh/ruff/pull/5490abc
decorators when classifying function types by @charliermarsh in https://github.com/astral-sh/ruff/pull/5315@Author
format for "Missing Author" rule inflake8-todos
by @mayrholu in https://github.com/astral-sh/ruff/pull/4903invalid-escape-sequence
rule by @charliermarsh in https://github.com/astral-sh/ruff/pull/5359flake8-django
] Skip duplicate violations inDJ012
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5469New Contributors
Full Changelog: astral-sh/ruff@v0.0.275...v0.0.276
Configuration
📅 Schedule: Branch creation - "on the 1st day of the month" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.