bash-completion
bash-completion copied to clipboard
chore(pre-commit): update ruff to v0.1.14
This PR contains the following updates:
| Package | Type | Update | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|---|---|
| astral-sh/ruff-pre-commit | repository | patch | v0.1.6 -> v0.1.14 |
||||
| ruff (source, changelog) | patch | ==0.1.6 -> ==0.1.14 |
Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.
Release Notes
astral-sh/ruff-pre-commit (astral-sh/ruff-pre-commit)
v0.1.14
See: https://github.com/astral-sh/ruff/releases/tag/v0.1.14
v0.1.13
See: https://github.com/astral-sh/ruff/releases/tag/v0.1.13
v0.1.12
See: https://github.com/astral-sh/ruff/releases/tag/v0.1.12
v0.1.11
See: https://github.com/astral-sh/ruff/releases/tag/v0.1.11
v0.1.10
See: https://github.com/astral-sh/ruff/releases/tag/v0.1.10
v0.1.9
See: https://github.com/astral-sh/ruff/releases/tag/v0.1.9
v0.1.8
See: https://github.com/astral-sh/ruff/releases/tag/v0.1.8
v0.1.7
See: https://github.com/astral-sh/ruff/releases/tag/v0.1.7
astral-sh/ruff (ruff)
v0.1.14
Preview features
- [
flake8-bugbear] Add fix forduplicate-value(B033) (#9510) - [
flake8-simplify] Implementenumerate-for-loop(SIM113) (#7777) - [
pygrep_hooks] Add fix fordeprecated-log-warn(PGH002) (#9519) - [
pylint] Implementimport-private-name(C2701) (#5920) - [
refurb] Implementregex-flag-aliaswith fix (FURB167) (#9516) - [
ruff] Add rule and fix to sort contents of__all__(RUF022) (#9474) - [
tryceratops] Add fix forerror-instead-of-exception(TRY400) (#9520)
Rule changes
- [
flake8-pyi] FixPYI047false negatives on PEP-695 type aliases (#9566) - [
flake8-pyi] FixPYI049false negatives on call-basedTypedDicts (#9567) - [
pylint] Excludeselfandclswhen counting method arguments (PLR0917) (#9563)
CLI
--show-settingsdisplays active settings in a far more readable format (#9464)- Add
--extensionsupport to the formatter (#9483)
Configuration
- Ignore preview status for fixable and unfixable selectors (#9538)
- [
pycodestyle] Use the configured tab size when expanding indents (#9506)
Bug fixes
- Recursively visit deferred AST nodes (#9541)
- Visit deferred lambdas before type definitions (#9540)
- [
flake8-simplify] Avoid some moreenumerate-for-loopfalse positives (SIM113) (#9515) - [
pandas-vet] Limit inplace diagnostics to methods that accept inplace (#9495) - [
pylint] Add the__prepare__method to the list of recognized dunder method (#9529) - [
pylint] Ignore unnecessary dunder calls within dunder definitions (#9496) - [
refurb] Avoid bailing whenreimplemented-operatoris called on function (FURB118) (#9556) - [
ruff] Avoid treating named expressions as static keys (RUF011) (#9494)
Documentation
- Add instructions on using
noqawith isort rules (#9555) - Documentation update for URL giving 'page not found' (#9565)
- Fix admonition in dark mode (#9502)
- Update contributing docs to use
cargo bench -p ruff_benchmark(#9535) - Update emacs integration section to include
emacs-ruff-format(#9403) - [
flake8-blind-except] Document exceptions toblind-exceptrule (#9580)
v0.1.13
Bug fixes
- Include base pyproject when initializing cache settings (#9480)
- [
flake8-simplify] Account for possibly-empty f-string values in truthiness logic (#9484) - [
pylint] Add the missing period inunnecessary-dunder-call(#9485) - [
pylint] Fix__aenter__message inunnecessary-dunder-call(#9492)
v0.1.12
Preview features
- Formatter: Hug multiline-strings in preview style (#9243)
- [
flake8-bandit] Addssl-with-no-version(S504) (#9384) - [
flake8-bandit] Implementssl-insecure-version(S502) (#9390) - [
flake8-bandit] Implementssl-with-bad-defaults(S503) (#9391) - [
flake8-bandit] Implement suspicious import rules (S4XX) (#8831) - [
flake8-simplify] Implementzip-dict-keys-and-values(SIM911) (#9460) - [
pyflakes] Add a fix forredefined-while-unused(F811) (#9419) - [
pylint] Implementunnecessary-dunder-call(C2801) (#9166) - [
ruff] Addparenthesize-chained-operators(RUF021) to enforce parentheses ina or b and c(#9440)
Rule changes
- [
flake8-boolean-trap] Allow Boolean positional arguments in setters (#9429) - [
flake8-builtins] Restrictbuiltin-attribute-shadowing(A003) to actual shadowed references (#9462) - [
flake8-pyi] Add fix forgenerator-return-from-iter-method(PYI058) (#9355) - [
pyflakes] Don't flagredefined-while-unused(F811) inifbranches (#9418) - [
pyupgrade] Add some additional Python 3.12 typing members todeprecated-import(#9445) - [
ruff] Add fix forparenthesize-chained-operators(RUF021) (#9449) - [
ruff] Include subscripts and attributes in static key rule (RUF011) (#9416) - [
ruff] Support variable keys in static dictionary key rule (RUF011) (#9411)
Formatter
- Generate deterministic IDs when formatting notebooks (#9359)
- Allow
# fmt: skipwith interspersed same-line comments (#9395) - Parenthesize breaking named expressions in match guards (#9396)
Bug fixes
- Add cell indexes to all diagnostics (#9387)
- Avoid infinite loop in constant vs.
Nonecomparisons (#9376) - Handle raises with implicit alternate branches (#9377)
- Ignore trailing quotes for unclosed l-brace errors (#9388)
- Respect multi-segment submodule imports when resolving qualified names (#9382)
- Use
DisplayParseErrorfor stdin parser errors (#9409) - Use
comment_rangesfor isort directive extraction (#9414) - Use transformed source code for diagnostic locations (#9408)
- [
flake8-pyi] Excludewarnings.deprecatedandtyping_extensions.deprecatedarguments (#9423) - [
flake8-pyi] Fix false negative forunused-private-protocol(PYI046) with unused generic protocols (#9405) - [
pydocstyle] Disambiguate argument descriptors from section headers (#9427) - [
pylint] HomogenizePLR0914message to match otherPLR09XXrules (#9399) - [
ruff] AllowHashable = Nonein type annotations (RUF013) (#9442)
Documentation
v0.1.11
Preview features
- [
pylint] Implementsuper-without-brackets(W0245) (#9257)
Bug fixes
- Check path string properly in
python -m ruffinvocations (#9367)
Documentation
v0.1.10
Preview features
- Improve
dummy_implementationspreview style formatting (#9240) - Normalise Hex and unicode escape sequences in strings (#9280)
- Parenthesize long type annotations in annotated assignments (#9210)
- Parenthesize multi-context managers in
withstatements (#9222) - [
flake8-pyi] Implementgenerator-return-from-iter-method(PYI058) (#9313) - [
pylint] Implementempty-comment(PLR2044) (#9174) - [
refurb] Implementbit-count(FURB161) (#9265) - [
ruff] Addnever-unionrule to detect redundanttyping.NoReturnandtyping.Never(#9217)
CLI
- Add paths to TOML parse errors (#9358)
- Add row and column numbers to formatter parse errors (#9321)
- Improve responsiveness when invoked via Python (#9315)
- Short rule messages should not end with a period (#9345)
Configuration
- Respect runtime-required decorators on functions (#9317)
Bug fixes
- Avoid
asyncio-dangling-taskfor nonlocal and global bindings (#9263) - Escape trailing placeholders in rule documentation (#9301)
- Fix continuation detection following multi-line strings (#9332)
- Fix scoping for generators in named expressions in classes (#9248)
- Port from obsolete wsl crate to is-wsl (#9356)
- Remove special pre-visit for module docstrings (#9261)
- Respect
__str__definitions from super classes (#9338) - Respect
unused-noqaviaper-file-ignores(#9300) - Respect attribute chains when resolving builtin call paths (#9309)
- Treat all
typing_extensionsmembers as typing aliases (#9335) - Use
Displayfor formatter parse errors (#9316) - Wrap subscripted dicts in parens for f-string conversion (#9238)
- [
flake8-annotations] Avoid adding return types to stub methods (#9277) - [
flake8-annotations] Respect mixedreturnandraisecases in return-type analysis (#9310) - [
flake8-bandit] Don't report violations whenSafeLoaderis imported fromyaml.loader(S506) (#9299) - [
pylint] Avoid panic when comment is preceded by Unicode (#9331) - [
pylint] ChangePLR0917error message to match otherPLR09XXmessages (#9308) - [
refurb] Avoid false positives formath-constant(FURB152) (#9290)
Documentation
- Expand target name for better rule documentation (#9302)
- Fix typos found by codespell (#9346)
- [
perflint] DocumentPERF102fix un-safety (#9351) - [
pyupgrade] DocumentUP007fix un-safety (#9306)
v0.1.9
Breaking changes
- Add site-packages to default exclusions (#9188)
Preview features
- Fix: Avoid parenthesizing subscript targets and values (#9209)
- [
pylint] Implementtoo-many-locals(PLR0914) (#9163) - Implement
reimplemented_operator(FURB118) (#9171) - Add a rule to detect string members in runtime-evaluated unions (#9143)
- Implement
no_blank_line_before_class_docstringpreview style (#9154)
Rule changes
CONSTANT_CASEvariables are improperly flagged for yoda violation (SIM300) (#9164)- [
flake8-pyi] Cover ParamSpecs and TypeVarTuples (PYI018) (#9198) - [
flake8-bugbear] Add fix forzip-without-explicit-strict(B905) (#9176) - Add fix to automatically remove
printandpprintstatements (T201,T203) (#9208) - Prefer
NevertoNoReturnin auto-typing in Python >= 3.11 (ANN201) (#9213)
Formatter
can_omit_optional_parentheses: Exit early for unparenthesized expressions (#9125)- Fix
dynamicmode with doctests so that it doesn't exceed configured line width (#9129) - Fix
can_omit_optional_parenthesesfor expressions with a right most fstring (#9124) - Add
target_versionto formatter options (#9220)
CLI
- Update
ruff format --checkto display message for already formatted files (#9153)
Bug fixes
- Reverse order of arguments for
operator.contains(#9192) - Iterate over lambdas in deferred type annotations (#9175)
- Fix panic in
D208with multibyte indent (#9147) - Add support for
NoReturnin auto-return-typing (#9206) - Allow removal of
typingfromexempt-modules(#9214) - Avoid
mutable-class-defaultviolations for Pydantic subclasses (#9187) - Fix dropped union expressions for piped non-types in
PYI055autofix (#9161) - Enable annotation quoting for multi-line expressions (#9142)
- Deduplicate edits when quoting annotations (#9140)
- Prevent invalid utf8 indexing in cell magic detection (#9146)
- Avoid nested quotations in auto-quoting fix (#9168)
- Add base-class inheritance detection to flake8-django rules (#9151)
- Avoid
asyncio-dangling-taskviolations on shadowed bindings (#9215)
Documentation
- Fix blog post URL in changelog (#9119)
- Add error suppression hint for multi-line strings (#9205)
- Fix typo in SemanticModel.parent_expression docstring (#9167)
- Document link between import sorting and formatter (#9117)
v0.1.8
This release includes opt-in support for formatting Python snippets within
docstrings via the docstring-code-format setting.
Check out the blog post for more details!
Preview features
- Add
"preserve"quote-style to mimic Black's skip-string-normalization (#8822) - Implement
prefer_splitting_right_hand_side_of_assignmentspreview style (#8943) - [
pycodestyle] Add fix forunexpected-spaces-around-keyword-parameter-equals(#9072) - [
pycodestyle] Add fix for comment-related whitespace rules (#9075) - [
pycodestyle] Allowsys.pathmodifications between imports (#9047) - [
refurb] Implementhashlib-digest-hex(FURB181) (#9077)
Rule changes
- Allow
flake8-type-checkingrules to automatically quote runtime-evaluated references (#6001) - Allow transparent cell magics in Jupyter Notebooks (#8911)
- [
flake8-annotations] AvoidANN2xxfixes for abstract methods with empty bodies (#9034) - [
flake8-self] Ignore underscore references in type annotations (#9036) - [
pep8-naming] Allow class names whenapps.get_modelis a non-string (#9065) - [
pycodestyle] Allowmatplotlib.usecalls to intersperse imports (#9094) - [
pyflakes] Support fixing unused assignments in tuples by renaming variables (F841) (#9107) - [
pylint] Add fix forsubprocess-run-without-check(PLW1510) (#6708)
Formatter
- Add
docstring-code-formatknob to enable docstring snippet formatting (#8854) - Use double quotes for all docstrings, including single-quoted docstrings (#9020)
- Implement "dynamic" line width mode for docstring code formatting (#9098)
- Support reformatting Markdown code blocks (#9030)
- add support for formatting reStructuredText code snippets (#9003)
- Avoid trailing comma for single-argument with positional separator (#9076)
- Fix handling of trailing target comment (#9051)
CLI
- Hide unsafe fix suggestions when explicitly disabled (#9095)
- Add SARIF support to
--output-format(#9078)
Bug fixes
- Apply unnecessary index rule prior to enumerate rewrite (#9012)
- [
flake8-err-msg] AllowEMfixes even ifmsgvariable is defined (#9059) - [
flake8-pie] Prevent keyword arguments duplication (#8450) - [
flake8-pie] Respect trailing comma inunnecessary-dict-kwargs(PIE804) (#9015) - [
flake8-raise] Avoid removing parentheses on ctypes.WinError (#9027) - [
isort] Avoid invalid combination offorce-sort-within-typesandlines-between-types(#9041) - [
isort] Ensure that from-style imports are always ordered first in__future__(#9039) - [
pycodestyle] Allow tab indentation before keyword (#9099) - [
pylint] Ignore@overridesand@overloadsfortoo-many-positional(#9000) - [
pyupgrade] Enableprintf-string-formattingfix with comments on right-hand side (#9037) - [
refurb] Makemath-constant(FURB152) rule more targeted (#9054) - [
refurb] Support floating-point base inredundant-log-base(FURB163) (#9100) - [
ruff] Detectunused-asyncio-dangling-task(RUF006) on unused assignments (#9060)
v0.1.7
Preview features
- Implement multiline dictionary and list hugging for preview style (#8293)
- Implement the
fix_power_op_line_lengthpreview style (#8947) - Use Python version to determine typing rewrite safety (#8919)
- [
flake8-annotations] Enable auto-return-type involvingOptionalandUnionannotations (#8885) - [
flake8-bandit] Implementdjango-raw-sql(S611) (#8651) - [
flake8-bandit] Implementtarfile-unsafe-members(S202) (#8829) - [
flake8-pyi] Implement fix forunnecessary-literal-union(PYI030) (#7934) - [
flake8-simplify] Extenddict-get-with-none-default(SIM910) to non-literals (#8762) - [
pylint] - addunnecessary-list-index-lookup(PLR1736) + autofix (#7999) - [
pylint] - implement R0202 and R0203 with autofixes (#8335) - [
pylint] Implementrepeated-keyword(PLe1132) (#8706) - [
pylint] Implementtoo-many-positional(PLR0917) (#8995) - [
pylint] Implementunnecessary-dict-index-lookup(PLR1733) (#8036) - [
refurb] Implementredundant-log-base(FURB163) (#8842)
Rule changes
- [
flake8-boolean-trap] Allow booleans in@overridemethods (#8882) - [
flake8-bugbear] AvoidB015,B018for last expression in a cell (#8815) - [
flake8-pie] Allow ellipses for enum values in stub files (#8825) - [
flake8-pyi] Check PEP 695 type aliases forsnake-case-type-aliasandt-suffixed-type-alias(#8966) - [
flake8-pyi] Check for kwarg and varargNoReturntype annotations (#8948) - [
flake8-simplify] Omit select context managers fromSIM117(#8801) - [
pep8-naming] Allow Django model loads innon-lowercase-variable-in-function(N806) (#8917) - [
pycodestyle] AvoidE703for last expression in a cell (#8821) - [
pycodestyle] UpdateE402to work at cell level for notebooks (#8872) - [
pydocstyle] AvoidD100for Jupyter Notebooks (#8816) - [
pylint] Implement fix forunspecified-encoding(PLW1514) (#8928)
Formatter
- Avoid unstable formatting in ellipsis-only body with trailing comment (#8984)
- Inline trailing comments for type alias similar to assignments (#8941)
- Insert trailing comma when function breaks with single argument (#8921)
CLI
- Update
ruff checkandruff formatto default to the current directory (#8791) - Stop at the first resolved parent configuration (#8864)
Configuration
- [
pylint] Defaultmax-positional-argstomax-args(#8998) - [
pylint] Addallow-dunder-method-namessetting forbad-dunder-method-name(PLW3201) (#8812) - [
isort] Add support forfrom-firstsetting (#8663) - [
isort] Add support forlength-sortsettings (#8841)
Bug fixes
- Add support for
@functools.singledispatch(#8934) - Avoid off-by-one error in stripping noqa following multi-byte char (#8979)
- Avoid off-by-one error in with-item named expressions (#8915)
- Avoid syntax error via invalid ur string prefix (#8971)
- Avoid underflow in
get_modelmatching (#8965) - Avoid unnecessary index diagnostics when value is modified (#8970)
- Convert over-indentation rule to use number of characters (#8983)
- Detect implicit returns in auto-return-types (#8952)
- Fix start >= end error in over-indentation (#8982)
- Ignore
@overloadand@overridemethods for too-many-arguments checks (#8954) - Lexer start of line is false only for
Mode::Expression(#8880) - Mark
pydantic_settings.BaseSettingsas having default copy semantics (#8793) - Respect dictionary unpacking in
NamedTupleassignments (#8810) - Respect local subclasses in
flake8-type-checking(#8768) - Support type alias statements in simple statement positions (#8916)
- [
flake8-annotations] Avoid filtering out un-representable types in return annotation (#8881) - [
flake8-pie] Retain extra ellipses in protocols and abstract methods (#8769) - [
flake8-pyi] Respect local enum subclasses insimple-defaults(PYI052) (#8767) - [
flake8-trio] Use correct range forTRIO115fix (#8933) - [
flake8-trio] Use full arguments range for zero-sleep-call (#8936) - [
isort] fix: mark__main__as first-party import (#8805) - [
pep8-naming] AvoidN806errors for type alias statements (#8785) - [
perflint] AvoidPERF101if there's an append in loop body (#8809) - [
pycodestyle] Allow space-before-colon after end-of-slice (#8838) - [
pydocstyle] Avoid non-character breaks inover-indentation(D208) (#8866) - [
pydocstyle] Ignore underlines when determining docstring logical lines (#8929) - [
pylint] Extendself-assigning-variableto multi-target assignments (#8839) - [
tryceratops] Avoid repeated triggers in nestedtryceratopsdiagnostics (#8772)
Documentation
- Add advice for fixing RUF008 when mutability is not desired (#8853)
- Added the command to run ruff using pkgx to the installation.md (#8955)
- Document fix safety for flake8-comprehensions and some pyupgrade rules (#8918)
- Fix doc formatting for zero-sleep-call (#8937)
- Remove duplicate imports from os-stat documentation (#8930)
- Replace generated reference to MkDocs (#8806)
- Update Arch Linux package URL in installation.md (#8802)
- [
flake8-pyi] Fix error int-suffixed-type-alias(PYI043) example (#8963) - [
flake8-pyi] Improve motivation forcustom-type-var-return-type(PYI019) (#8766)
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 these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.