From a12cca4d48dbdbbf9f795d9017c9c246a8107b64 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 23 Jun 2023 22:44:11 +0000 Subject: [PATCH] Update dependency ruff to v0.0.275 (#240) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![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.275` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.275/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.275/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.275/compatibility-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.275/confidence-slim/0.0.272)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
astral-sh/ruff ### [`v0.0.275`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.275) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.0.274...v0.0.275) #### What's Changed Highlights include a 7-10x decrease in Ruff's cache size. ##### Rules - Add support for top-level quoted annotations in RUF013 by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5235](https://togithub.com/astral-sh/ruff/pull/5235) - Add support for nested quoted annotations in RUF013 by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/astral-sh/ruff/pull/5254](https://togithub.com/astral-sh/ruff/pull/5254) - Move `compare-to-empty-string` (`PLC1901`) to nursery by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5264](https://togithub.com/astral-sh/ruff/pull/5264) - Ignore Pydantic classes when evaluating `mutable-class-default` (`RUF012`) by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5273](https://togithub.com/astral-sh/ruff/pull/5273) - Allow `typing.Final` for `mutable-class-default annotations` (`RUF012`) by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5274](https://togithub.com/astral-sh/ruff/pull/5274) - Modify `deprecated-import` (`UP035`) to prefer `typing_extensions` in some versions by [@​tjkuson](https://togithub.com/tjkuson) in [https://github.com/astral-sh/ruff/pull/5291](https://togithub.com/astral-sh/ruff/pull/5291) ##### Bug Fixes - Restore existing bindings when unbinding caught exceptions by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5256](https://togithub.com/astral-sh/ruff/pull/5256) - Avoid including nursery rules in linter-level selectors by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5268](https://togithub.com/astral-sh/ruff/pull/5268) #### New Contributors - [@​jgberry](https://togithub.com/jgberry) made their first contribution in [https://github.com/astral-sh/ruff/pull/5221](https://togithub.com/astral-sh/ruff/pull/5221) **Full Changelog**: https://github.com/astral-sh/ruff/compare/v0.0.274...v0.0.275 ### [`v0.0.274`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.274) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.0.273...v0.0.274) #### What's Changed Follow-up release to `v0.0.273` to fix a panic in cache accesses. ##### Bug Fixes - Use package roots rather than package members for cache initialization by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5233](https://togithub.com/astral-sh/ruff/pull/5233) - Avoid `.unwrap()` on cache access by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5229](https://togithub.com/astral-sh/ruff/pull/5229) - Revert change to `RUF010` to remove unnecessary `str` calls by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5232](https://togithub.com/astral-sh/ruff/pull/5232) - Avoid erroneous RUF013 violations for quoted annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5234](https://togithub.com/astral-sh/ruff/pull/5234) **Full Changelog**: https://github.com/astral-sh/ruff/compare/v0.0.273...v0.0.274 ### [`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) #### 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 [https://github.com/astral-sh/ruff/pull/4701](https://togithub.com/astral-sh/ruff/pull/4701) - \[`flake8-datetimez`] Enable UTC-import for `datetime-utc-alias` fix by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5100](https://togithub.com/astral-sh/ruff/pull/5100) - \[`flake8-implicit-str-concat`] Add autofix for `ISC001` by [@​tkukushkin](https://togithub.com/tkukushkin) in [https://github.com/astral-sh/ruff/pull/4853](https://togithub.com/astral-sh/ruff/pull/4853) - \[`flake8-import-conventions`] Enable autofix for unconventional imports rule by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5152](https://togithub.com/astral-sh/ruff/pull/5152) - \[`flake8-pyi`] Add autofix for `Set`-to-`AbstractSet` rewrite using reference tracking by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5074](https://togithub.com/astral-sh/ruff/pull/5074) - \[`flake8-pyi`] Implement PYI044 by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/astral-sh/ruff/pull/5021](https://togithub.com/astral-sh/ruff/pull/5021) - \[`flake8-return`] Extend revised `RET504` implementation to `with` statements by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4998](https://togithub.com/astral-sh/ruff/pull/4998) - \[`flake8-return`] Implement autofix for revised `RET504` rule by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4999](https://togithub.com/astral-sh/ruff/pull/4999) - \[`flake8-return`] Refactor `RET504` to only enforce assignment-then-return pattern by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4997](https://togithub.com/astral-sh/ruff/pull/4997) - \[`flake8-slots`] Add plugin, add `SLOT000`, `SLOT001` and `SLOT002` by [@​qdegraaf](https://togithub.com/qdegraaf) in [https://github.com/astral-sh/ruff/pull/4909](https://togithub.com/astral-sh/ruff/pull/4909) - \[`perflint`] Add `perflint` plugin, add first rule `PERF102` by [@​qdegraaf](https://togithub.com/qdegraaf) in [https://github.com/astral-sh/ruff/pull/4821](https://togithub.com/astral-sh/ruff/pull/4821) - \[`pylint`] Add Pylint rule `comparison-with-itself` (`R0124`) by [@​tjkuson](https://togithub.com/tjkuson) in [https://github.com/astral-sh/ruff/pull/4957](https://togithub.com/astral-sh/ruff/pull/4957) - \[`pyupgrade`] Add a rule to remove unnecessary parentheses in class definitions by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5032](https://togithub.com/astral-sh/ruff/pull/5032) - \[`ruff`] Add a rule for static keys in dict comprehensions by [@​rodjunger](https://togithub.com/rodjunger) in [https://github.com/astral-sh/ruff/pull/4929](https://togithub.com/astral-sh/ruff/pull/4929) - \[`ruff`] Add rule to disallow implicit optional with autofix by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/astral-sh/ruff/pull/4831](https://togithub.com/astral-sh/ruff/pull/4831) - \[`ruff`] Expand RUF008 to all classes, but to a new code (RUF012) by [@​adampauls](https://togithub.com/adampauls) in [https://github.com/astral-sh/ruff/pull/4390](https://togithub.com/astral-sh/ruff/pull/4390) - \[`ruff`] Remove unannotated attributes from RUF008 by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5049](https://togithub.com/astral-sh/ruff/pull/5049) - \[`ruff`] Upgrade explicit-type-conversion rule (`RUF010`) to remove unnecessary `str` calls by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4971](https://togithub.com/astral-sh/ruff/pull/4971) ##### Settings - Option (`-o`/`--output-file`) to write output to a file by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/astral-sh/ruff/pull/4950](https://togithub.com/astral-sh/ruff/pull/4950) - Add JSON Lines (NDJSON) message serialization by [@​akx](https://togithub.com/akx) in [https://github.com/astral-sh/ruff/pull/5048](https://togithub.com/astral-sh/ruff/pull/5048) - Add rule documentation URL to JSON output by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5187](https://togithub.com/astral-sh/ruff/pull/5187) ##### Caching - Only use a single cache file per Python package by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/astral-sh/ruff/pull/5117](https://togithub.com/astral-sh/ruff/pull/5117) - Open cache files in parallel by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/astral-sh/ruff/pull/5120](https://togithub.com/astral-sh/ruff/pull/5120) ##### Jupyter - Add support for auto-fix in Jupyter notebooks by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/astral-sh/ruff/pull/4665](https://togithub.com/astral-sh/ruff/pull/4665) - Add roundtrip support for Jupyter notebook by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/astral-sh/ruff/pull/5028](https://togithub.com/astral-sh/ruff/pull/5028) ##### Bug Fixes - Handle decorators in class-parenthesis-modifying rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5034](https://togithub.com/astral-sh/ruff/pull/5034) - Allow re-assignments to `__all__` by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4967](https://togithub.com/astral-sh/ruff/pull/4967) - Handled dict and set inside f-string ([#​4249](https://togithub.com/astral-sh/ruff/issues/4249)) by [@​DavideCanton](https://togithub.com/DavideCanton) in [https://github.com/astral-sh/ruff/pull/4563](https://togithub.com/astral-sh/ruff/pull/4563) - Support concatenated string key removals by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4976](https://togithub.com/astral-sh/ruff/pull/4976) - Respect 'is not' operators split across newlines by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4977](https://togithub.com/astral-sh/ruff/pull/4977) - Parenthesize expressions prior to lexing in F632 by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5001](https://togithub.com/astral-sh/ruff/pull/5001) - Ignore pyproject.toml for adding noqa directives by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/astral-sh/ruff/pull/5013](https://togithub.com/astral-sh/ruff/pull/5013) - Support 'reason' argument to `pytest.fail` by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5040](https://togithub.com/astral-sh/ruff/pull/5040) - Allow `async with` in `redefined-loop-name` by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5125](https://togithub.com/astral-sh/ruff/pull/5125) - Skip `DJ008` enforcement in stub files by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5139](https://togithub.com/astral-sh/ruff/pull/5139) - Detect continuations at start-of-file by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5173](https://togithub.com/astral-sh/ruff/pull/5173) - Fix allowed-ellipsis detection by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5174](https://togithub.com/astral-sh/ruff/pull/5174) - Remove continuations before trailing semicolons by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5199](https://togithub.com/astral-sh/ruff/pull/5199) - Support parenthesized expressions when splitting compound assertions by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5219](https://togithub.com/astral-sh/ruff/pull/5219) - Use phf for confusables to reduce llvm lines by [@​konstin](https://togithub.com/konstin) in [https://github.com/astral-sh/ruff/pull/4926](https://togithub.com/astral-sh/ruff/pull/4926) - Allow private accesses within special dunder methods by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4968](https://togithub.com/astral-sh/ruff/pull/4968) - Support concatenated literals in format-literals by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/4974](https://togithub.com/astral-sh/ruff/pull/4974) - Fix line numbers in source frames by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/astral-sh/ruff/pull/4984](https://togithub.com/astral-sh/ruff/pull/4984) - Suggest combining async with statements by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/astral-sh/ruff/pull/5022](https://togithub.com/astral-sh/ruff/pull/5022) - Improve `TypedDict` conversion logic for shadowed builtins and dunder methods by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5038](https://togithub.com/astral-sh/ruff/pull/5038) - Support glob patterns in pep8\_naming ignore-names by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/astral-sh/ruff/pull/5024](https://togithub.com/astral-sh/ruff/pull/5024) - Respect all `__all__` definitions for docstring visibility by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5052](https://togithub.com/astral-sh/ruff/pull/5052) - Don't treat annotations as resolved in forward references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5060](https://togithub.com/astral-sh/ruff/pull/5060) - Consider ignore-names in all pep8 naming rules by [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) in [https://github.com/astral-sh/ruff/pull/5079](https://togithub.com/astral-sh/ruff/pull/5079) - Ignore `reimplemented-builtin` if using `await` by [@​tjkuson](https://togithub.com/tjkuson) in [https://github.com/astral-sh/ruff/pull/5101](https://togithub.com/astral-sh/ruff/pull/5101) - Allow space in filename for powershell + windows + python module by [@​konstin](https://togithub.com/konstin) in [https://github.com/astral-sh/ruff/pull/5115](https://togithub.com/astral-sh/ruff/pull/5115) - Don't treat straight imports of **future** as `__future__` imports by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5128](https://togithub.com/astral-sh/ruff/pull/5128) - Remove continuations when deleting statements by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/astral-sh/ruff/pull/5198](https://togithub.com/astral-sh/ruff/pull/5198) - Fix corner case involving terminal backslash after fixing `W293` by [@​evanrittenhouse](https://togithub.com/evanrittenhouse) in [https://github.com/astral-sh/ruff/pull/5172](https://togithub.com/astral-sh/ruff/pull/5172) - Fix subprocess.run on Windows Python 3.7 by [@​konstin](https://togithub.com/konstin) in [https://github.com/astral-sh/ruff/pull/5220](https://togithub.com/astral-sh/ruff/pull/5220) #### New Contributors - [@​rodjunger](https://togithub.com/rodjunger) made their first contribution in [https://github.com/astral-sh/ruff/pull/4929](https://togithub.com/astral-sh/ruff/pull/4929) - [@​DavideCanton](https://togithub.com/DavideCanton) made their first contribution in [https://github.com/astral-sh/ruff/pull/4563](https://togithub.com/astral-sh/ruff/pull/4563) - [@​Thomasdezeeuw](https://togithub.com/Thomasdezeeuw) made their first contribution in [https://github.com/astral-sh/ruff/pull/5021](https://togithub.com/astral-sh/ruff/pull/5021) - [@​adampauls](https://togithub.com/adampauls) made their first contribution in [https://github.com/astral-sh/ruff/pull/4390](https://togithub.com/astral-sh/ruff/pull/4390) - [@​tkukushkin](https://togithub.com/tkukushkin) made their first contribution in [https://github.com/astral-sh/ruff/pull/4853](https://togithub.com/astral-sh/ruff/pull/4853) - [@​Taybou](https://togithub.com/Taybou) made their first contribution in [https://github.com/astral-sh/ruff/pull/5088](https://togithub.com/astral-sh/ruff/pull/5088) - [@​davidszotten](https://togithub.com/davidszotten) made their first contribution in [https://github.com/astral-sh/ruff/pull/5158](https://togithub.com/astral-sh/ruff/pull/5158) - [@​dosisod](https://togithub.com/dosisod) made their first contribution in [https://github.com/astral-sh/ruff/pull/5203](https://togithub.com/astral-sh/ruff/pull/5203) **Full Changelog**: https://github.com/astral-sh/ruff/compare/v0.0.272...v0.0.273
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] 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/allenporter/flux-local). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1d26e24a..ece73a4e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ pytest-cov==4.1.0 pytest-golden==0.2.2 python-slugify==8.0.1 PyYAML==6.0 -ruff==0.0.272 +ruff==0.0.275 types-aiofiles==23.1.0.4 types-PyYAML==6.0.12.10 typing-extensions==4.6.3