Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Update dependency ruff to ^0.0.273 (#117)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ruff](https://beta.ruff.rs/docs) ([source](https://togithub.com/astral-sh/ruff), [changelog](https://togithub.com/astral-sh/ruff/releases)) | `^0.0.272` -> `^0.0.273` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.273/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.273/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.273/compatibility-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.273/confidence-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>astral-sh/ruff</summary> ### [`v0.0.273`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.273) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.0.272...v0.0.273) <!-- Release notes generated using configuration in .github/release.yml at main --> ##### What's Changed Highlights include: - Autofix capabilities for rules like `flake8-import-conventions`, which require symbol renames across a file. - Significant decrease in Ruff's cache size (e.g., a ~50% decrease for FastAPI). - Dozens and dozens of bug fixes + performance improvements. ##### Rules - \[`copyright`] Implement copyright notice detection by [@​Ryang20718](https://togithub.com/Ryang20718) in [astral-sh/ruff#4701 - \[`flake8-datetimez`] Enable UTC-import for `datetime-utc-alias` fix by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5100 - \[`flake8-implicit-str-concat`] Add autofix for `ISC001` by [@​tkukushkin](https://togithub.com/tkukushkin) in [astral-sh/ruff#4853 - \[`flake8-import-conventions`] Enable autofix for unconventional imports rule by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5152 - \[`flake8-pyi`] Add autofix for `Set`-to-`AbstractSet` rewrite using reference tracking by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5074 - \[`flake8-pyi`] Implement PYI044 by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [astral-sh/ruff#5021 - \[`flake8-return`] Extend revised `RET504` implementation to `with` statements by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4998 - \[`flake8-return`] Implement autofix for revised `RET504` rule by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4999 - \[`flake8-return`] Refactor `RET504` to only enforce assignment-then-return pattern by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4997 - \[`flake8-slots`] Add plugin, add `SLOT000`, `SLOT001` and `SLOT002` by [@​qdegraaf](https://togithub.com/qdegraaf) in [astral-sh/ruff#4909 - \[`perflint`] Add `perflint` plugin, add first rule `PERF102` by [@​qdegraaf](https://togithub.com/qdegraaf) in [astral-sh/ruff#4821 - \[`pylint`] Add Pylint rule `comparison-with-itself` (`R0124`) by [@​tjkuson](https://togithub.com/tjkuson) in [astral-sh/ruff#4957 - \[`pyupgrade`] Add a rule to remove unnecessary parentheses in class definitions by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5032 - \[`ruff`] Add a rule for static keys in dict comprehensions by [@​rodjunger](https://togithub.com/rodjunger) in [astral-sh/ruff#4929 - \[`ruff`] Add rule to disallow implicit optional with autofix by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#4831 - \[`ruff`] Expand RUF008 to all classes, but to a new code (RUF012) by [@​adampauls](https://togithub.com/adampauls) in [astral-sh/ruff#4390 - \[`ruff`] Remove unannotated attributes from RUF008 by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5049 - \[`ruff`] Upgrade explicit-type-conversion rule (`RUF010`) to remove unnecessary `str` calls by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4971 ##### Settings - Option (`-o`/`--output-file`) to write output to a file by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#4950 - Add JSON Lines (NDJSON) message serialization by [@​akx](https://togithub.com/akx) in [astral-sh/ruff#5048 - Add rule documentation URL to JSON output by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5187 ##### Caching - Only use a single cache file per Python package by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [astral-sh/ruff#5117 - Open cache files in parallel by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [astral-sh/ruff#5120 ##### Jupyter - Add support for auto-fix in Jupyter notebooks by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#4665 - Add roundtrip support for Jupyter notebook by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#5028 ##### Bug Fixes - Handle decorators in class-parenthesis-modifying rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5034 - Allow re-assignments to `__all__` by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4967 - Handled dict and set inside f-string ([#​4249](https://togithub.com/astral-sh/ruff/issues/4249)) by [@​DavideCanton](https://togithub.com/DavideCanton) in [astral-sh/ruff#4563 - Support concatenated string key removals by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4976 - Respect 'is not' operators split across newlines by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4977 - Parenthesize expressions prior to lexing in F632 by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5001 - Ignore pyproject.toml for adding noqa directives by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#5013 - Support 'reason' argument to `pytest.fail` by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5040 - Allow `async with` in `redefined-loop-name` by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5125 - Skip `DJ008` enforcement in stub files by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5139 - Detect continuations at start-of-file by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5173 - Fix allowed-ellipsis detection by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5174 - Remove continuations before trailing semicolons by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5199 - Support parenthesized expressions when splitting compound assertions by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5219 - Use phf for confusables to reduce llvm lines by [@​konstin](https://togithub.com/konstin) in [astral-sh/ruff#4926 - Allow private accesses within special dunder methods by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4968 - Support concatenated literals in format-literals by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#4974 - Fix line numbers in source frames by [@​MichaReiser](https://togithub.com/MichaReiser) in [astral-sh/ruff#4984 - Suggest combining async with statements by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [astral-sh/ruff#5022 - Improve `TypedDict` conversion logic for shadowed builtins and dunder methods by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5038 - Support glob patterns in pep8\_naming ignore-names by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [astral-sh/ruff#5024 - Respect all `__all__` definitions for docstring visibility by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5052 - Don't treat annotations as resolved in forward references by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5060 - Consider ignore-names in all pep8 naming rules by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [astral-sh/ruff#5079 - Ignore `reimplemented-builtin` if using `await` by [@​tjkuson](https://togithub.com/tjkuson) in [astral-sh/ruff#5101 - Allow space in filename for powershell + windows + python module by [@​konstin](https://togithub.com/konstin) in [astral-sh/ruff#5115 - Don't treat straight imports of **future** as `__future__` imports by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5128 - Remove continuations when deleting statements by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5198 - Fix corner case involving terminal backslash after fixing `W293` by [@​evanrittenhouse](https://togithub.com/evanrittenhouse) in [astral-sh/ruff#5172 - Fix subprocess.run on Windows Python 3.7 by [@​konstin](https://togithub.com/konstin) in [astral-sh/ruff#5220 ##### New Contributors - [@​rodjunger](https://togithub.com/rodjunger) made their first contribution in [astral-sh/ruff#4929 - [@​DavideCanton](https://togithub.com/DavideCanton) made their first contribution in [astral-sh/ruff#4563 - [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) made their first contribution in [astral-sh/ruff#5021 - [@​adampauls](https://togithub.com/adampauls) made their first contribution in [astral-sh/ruff#4390 - [@​tkukushkin](https://togithub.com/tkukushkin) made their first contribution in [astral-sh/ruff#4853 - [@​Taybou](https://togithub.com/Taybou) made their first contribution in [astral-sh/ruff#5088 - [@​davidszotten](https://togithub.com/davidszotten) made their first contribution in [astral-sh/ruff#5158 - [@​dosisod](https://togithub.com/dosisod) made their first contribution in [astral-sh/ruff#5203 **Full Changelog**: astral-sh/ruff@v0.0.272...v0.0.273 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ixm-one/pytest-cmake-presets). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information