chore(deps): update dependency ruff to v0.5.0 #14
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
renovate
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: olofvndrhr/octodns-netbox-dns#14
Loading…
Reference in New Issue
No description provided.
Delete Branch "renovate/ruff-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==0.2.2
->==0.5.0
Release Notes
astral-sh/ruff (ruff)
v0.5.0
Compare Source
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
See also, the "Remapped rules" section which may result in disabled rules.
ALL
now excludes deprecated rules--strip-components=1
when untarring./latest
URLs on GitHub.Deprecations
The following rules are now deprecated:
syntax-error
(E999
): Syntax errors are now always shownRemapped rules
The following rules have been remapped to new rule codes:
blocking-http-call-in-async-function
:ASYNC100
toASYNC210
open-sleep-or-subprocess-in-async-function
:ASYNC101
split intoASYNC220
,ASYNC221
,ASYNC230
, andASYNC251
blocking-os-call-in-async-function
:ASYNC102
has been merged intoASYNC220
andASYNC221
trio-timeout-without-await
:TRIO100
toASYNC100
trio-sync-call
:TRIO105
toASYNC105
trio-async-function-with-timeout
:TRIO109
toASYNC109
trio-unneeded-sleep
:TRIO110
toASYNC110
trio-zero-sleep-call
:TRIO115
toASYNC115
repeated-isinstance-calls
:PLR1701
toSIM101
Stabilization
The following rules have been stabilized and are no longer in preview:
mutable-fromkeys-value
(RUF024
)default-factory-kwarg
(RUF026
)django-extra
(S610
)manual-dict-comprehension
(PERF403
)print-empty-string
(FURB105
)readlines-in-for
(FURB129
)if-expr-min-max
(FURB136
)bit-count
(FURB161
)redundant-log-base
(FURB163
)regex-flag-alias
(FURB167
)isinstance-type-none
(FURB168
)type-none-comparison
(FURB169
)implicit-cwd
(FURB177
)hashlib-digest-hex
(FURB181
)list-reverse-copy
(FURB187
)bad-open-mode
(PLW1501
)empty-comment
(PLR2044
)global-at-module-level
(PLW0604
)misplaced-bare-raise
(PLE0744
)non-ascii-import-name
(PLC2403
)non-ascii-name
(PLC2401
)nonlocal-and-global
(PLE0115
)potential-index-error
(PLE0643
)redeclared-assigned-name
(PLW0128
)redefined-argument-from-local
(PLR1704
)repeated-keyword-argument
(PLE1132
)super-without-brackets
(PLW0245
)unnecessary-list-index-lookup
(PLR1736
)useless-exception-statement
(PLW0133
)useless-with-lock
(PLW2101
)The following behaviors have been stabilized:
is-literal
(F632
) now warns for identity checks against list, set or dictionary literalsneedless-bool
(SIM103
) now detectsif
expressions with implicitelse
branchesmodule-import-not-at-top-of-file
(E402
) now allowsos.environ
modifications between import statementstype-comparison
(E721
) now allows idioms such astype(x) is int
yoda-condition
(SIM300
) now flags a wider range of expressionsRemovals
The following deprecated settings have been removed:
output-format=text
; useoutput-format=concise
oroutput-format=full
tab-size
; useindent-width
The following deprecated CLI options have been removed:
--show-source
; use--output-format=full
--no-show-source
; use--output-format=concise
The following deprecated CLI commands have been removed:
ruff <path>
; useruff check <path>
ruff --clean
; useruff clean
ruff --generate-shell-completion
; useruff generate-shell-completion
Preview features
CLI
--statistics
(#11697)full
by default (#12010)Rule changes
Server
logFile
(#11945)Bug fixes
Parser
Other changes
v0.4.10
Compare Source
Parser
Rule changes
Server
Security
v0.4.9
Compare Source
Preview features
Rule changes
Formatter
Server
ruff server
(#11800)ruff.printDebugInformation
command (#11831)CLI
Bug fixes
v0.4.8
Compare Source
Performance
Preview features
Rule changes
Server
CLI
--output-format
flag (#11682)Bug fixes
type
statements (#11720)v0.4.7
Compare Source
Preview features
Formatter
Server
ruff server
(#11590)ruff server
(#11615)Bug fixes
repeated-isinstance-calls
as unsafe on Python 3.10 and later (#11622)v0.4.6
Compare Source
Breaking changes
Preview features
Rule changes
match
-case
statements forC901
,PLR0912
, andPLR0915
(#11521)UP032
) (#11524)Server
ruff server
configuration discovery (#11551)ruff server
correctly treats.pyi
files as stub files (#11535)ruff server
searches for configuration in parent directories (#11537)ruff server
: An empty code action filter no longer returns notebook source actions (#11526)Bug fixes
--output-file
(#11550)singledispatch
arguments as runtime-required (#11523)v0.4.5
Compare Source
Ruff's language server is now in Beta
v0.4.5
marks the official Beta release ofruff server
, an integrated language server built into Ruff.ruff server
supports the same feature set asruff-lsp
, powering linting, formatting, andcode fixes in Ruff's editor integrations -- but with superior performance and
no installation required. We'd love your feedback!
You can enable
ruff server
in the VS Code extension today.To read more about this exciting milestone, check out our blog post!
Rule changes
Formatter
quote-style = preserve
(#11490)Server
noqa
comment code actions (#11276)CLI
--output-format
as a CLI option forruff config
(#11438)Bug fixes
PLE0237
for property with setter (#11377)TCH005
forif
stmt withelif
/else
block (#11376)__future__
annotations as required for non-evaluated type annotations (#11414)Documentation
--preview
to the README (#11395)v0.4.4
Compare Source
Preview features
Rule changes
Server
ruff server
hanging after Neovim closes (#11291)Bug fixes
__all__ = builtins.list(["foo", "bar"])
as valid__all__
definitions (#11335)v0.4.3
Compare Source
Enhancements
Preview features
Rule changes
Formatter
LSP
ruff server
setup guide for Helix (#11183)ruff server
no longer hangs after shutdown (#11222)ruff server
reads from a configuration TOML file in the user configuration directory if no local configuration exists (#11225)ruff server
respectsper-file-ignores
configuration (#11224)ruff server
: Support a custom TOML configuration file (#11140)ruff server
: Support setting to prioritize project configuration over editor configuration (#11086)Bug fixes
Performance
Windows
v0.4.2
Compare Source
Rule changes
Server
noqa
codes (#11096)Bug fixes
macos-12
for building release wheels to enable macOS 11 compatibility (#11146)Documentation
Performance
matchit
to resolve per-file settings (#11111)v0.4.1
Compare Source
Parser
Rule changes
Server
Security
v0.4.0
Compare Source
A new, hand-written parser
Ruff's new parser is >2x faster, which translates to a 20-40% speedup for all linting and formatting invocations.
There's a lot to say about this exciting change, so check out the blog post for more details!
See #10036 for implementation details.
A new language server in Rust
With this release, we also want to highlight our new language server.
ruff server
is a Rust-powered languageserver that comes built-in with Ruff. It can be used with any editor that supports the Language Server Protocol (LSP).
It uses a multi-threaded, lock-free architecture inspired by
rust-analyzer
and it will open the door for a lotof exciting features. It’s also faster than our previous Python-based language server
-- but you probably guessed that already.
ruff server
is only in alpha, but it has a lot of features that you can try out today:ruff.applyAutofix
,ruff.applyFormat
, andruff.applyOrganizeImports
source.fixAll
andsource.organizeImports
source actionsTo setup
ruff server
with your editor, refer to the README.md.Preview features
Rule changes
Linter
--show-settings
(#11003)BuiltinTypeChecker
(#10976)RuleTable::any_enabled
(#10971)Server
This section is devoted to updates for our new language server, written in Rust.
Configuration
RUFF_OUTPUT_FILE
environment variable support (#10992)Bug fixes
non-augmented-assignment
for reversed, non-commutative operators (PLR6104
) (#10909)PLR6104
) (#10912)per-file-ignores
forRUF100
on blanket# noqa
(#10908)if
expression for parenthesized with items parsing (#11010)FOR_TARGET
context for all kinds of parentheses (#11009)v0.3.7
Compare Source
Preview features
Bug fixes
v0.3.6
Compare Source
Preview features
Rule changes
CLI
FORCE_COLOR
env var (#10839)Configuration
[extend-]per-file-ignores
(#10852)Bug fixes
# noqa
directives on__all__
openers (#10798)v0.3.5
Compare Source
Preview features
Rule changes
Configuration
Bug fixes
__all__
definitions when renaming symbols in autofixes (#10527)__all__
definitions (#10525)Documentation
CONTRIBUTING.md
(#10665)flake8-logging
next to the other flake8 plugins in registry (#10587)v0.3.4
Compare Source
Preview features
Rule changes
Formatter
Bug fixes
C409
) (#10491)name
from being reformatted (#10442)W605
(#10480).pyi
files (#10512)E231
bug: Inconsistent catch compared to pycodestyle, such as when dict nested in list (#10469)Options
references to blank line docs (#10498)from __future__ import annotations
is active (#10362)"' (#10513)v0.3.3
Compare Source
Preview features
Rule changes
CLI
ruff check
(#8631)Bug fixes
TRIO115
if the argument is a variable (#10376)F821
andF822
false positives in.pyi
files (#10341)F821
false negatives in.py
files whenfrom __future__ import annotations
is active (#10362)Indexer
fails to identify continuation preceded by newline #10351 (#10354)Settings
display (#10370)Documentation
ruff.toml
format in README (#10393).
fromcheck
andformat
commands (#10217)v0.3.2
Compare Source
Preview features
with
item formatting for Python 3.8 or older (#10276)Rule changes
Bug fixes
with
items formatting (#10274)Parameter
range for*args
and**kwargs
(#10283)typing.Annotated
subscripts as type definitions (#10285)v0.3.1
Compare Source
Preview features
Rule changes
CLI
ruff format --diff
(#10110)--config
and--isolated
global flags (#10150)--config
(#10219)Configuration
required-version
(#10216)default-section
setting (#10149)Bug fixes
CapWords
message (#10220)v0.3.0
Compare Source
This release introduces the new Ruff formatter 2024.2 style and adds a new lint rule to
detect invalid formatter suppression comments.
Preview features
Rule changes
Formatter
This release introduces the Ruff 2024.2 style, stabilizing the following changes:
with
parentheses when targeting Python 3.9 or newer (#9222)...
) in typing stub files (#9155)...
) body (#7440, #9240)CLI
extend
as part of a--config
flag (#10135)build
from the default exclusion list (#10093)ruff <path>
,ruff --explain
,ruff --clean
, andruff --generate-shell-completion
in favor ofruff check <path>
,ruff rule
,ruff clean
, andruff generate-shell-completion
(#10169)--format
fromruff rule
andruff linter
(#10170)Bug fixes
ruff
crashing on PowerPC systems because of too small page size (#10080)Performance
Documentation
line-length
option: fix link topycodestyle.max-line-length
(#10136)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
Update dependency ruff to v0.3.0to chore(deps): update dependency ruff to v0.3.0chore(deps): update dependency ruff to v0.3.0to chore(deps): update dependency ruff to v0.3.1d67eae2a43
to4050537f17
chore(deps): update dependency ruff to v0.3.1to chore(deps): update dependency ruff to v0.3.24050537f17
to00b1b49ecb
chore(deps): update dependency ruff to v0.3.2to chore(deps): update dependency ruff to v0.3.300b1b49ecb
tof774ac87c9
chore(deps): update dependency ruff to v0.3.3to chore(deps): update dependency ruff to v0.3.4f774ac87c9
to08b10a14ff
chore(deps): update dependency ruff to v0.3.4to chore(deps): update dependency ruff to v0.3.508b10a14ff
to03cb53ce3d
chore(deps): update dependency ruff to v0.3.5to chore(deps): update dependency ruff to v0.3.603cb53ce3d
toa7bb7be806
chore(deps): update dependency ruff to v0.3.6to chore(deps): update dependency ruff to v0.3.7a7bb7be806
tocd672708ee
chore(deps): update dependency ruff to v0.3.7to chore(deps): update dependency ruff to v0.4.0cd672708ee
to31d3ee84ae
chore(deps): update dependency ruff to v0.4.0to chore(deps): update dependency ruff to v0.4.131d3ee84ae
to74f905aa04
chore(deps): update dependency ruff to v0.4.1to chore(deps): update dependency ruff to v0.4.274f905aa04
tob20a6e51af
chore(deps): update dependency ruff to v0.4.2to chore(deps): update dependency ruff to v0.4.3b20a6e51af
tocacc43f27d
chore(deps): update dependency ruff to v0.4.3to chore(deps): update dependency ruff to v0.4.4cacc43f27d
to91b47c5278
chore(deps): update dependency ruff to v0.4.4to chore(deps): update dependency ruff to v0.4.591b47c5278
to320aa99823
chore(deps): update dependency ruff to v0.4.5to chore(deps): update dependency ruff to v0.4.6320aa99823
toa3064f852f
chore(deps): update dependency ruff to v0.4.6to chore(deps): update dependency ruff to v0.4.7a3064f852f
to241b637db2
chore(deps): update dependency ruff to v0.4.7to chore(deps): update dependency ruff to v0.4.8241b637db2
to8a72fb13d1
chore(deps): update dependency ruff to v0.4.8to chore(deps): update dependency ruff to v0.4.98a72fb13d1
to30c17db25d
chore(deps): update dependency ruff to v0.4.9to chore(deps): update dependency ruff to v0.4.1030c17db25d
to384f1c0a41
chore(deps): update dependency ruff to v0.4.10to chore(deps): update dependency ruff to v0.5.0384f1c0a41
to5e7cd1da6f
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.