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 v0.0.282 (#229)
[![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.280` -> `==0.0.282` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.282?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.282?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.280/0.0.282?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.280/0.0.282?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.0.282`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.282) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.0.281...v0.0.282) <!-- Release notes generated using configuration in .github/release.yml at v0.0.282 --> #### What's Changed ##### Bug Fixes - Reset model state when exiting deferred visitors by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6208 - Skip trivia when searching for named exception by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6218 - Avoid PERF401 false positive on list access in loop by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6220 - Avoid detecting continuations at non-start-of-line by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6219 - Revert "Expand scope of `quoted-annotation` rule ([#​5766](https://togithub.com/astral-sh/ruff/issues/5766))" by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6237 #### New Contributors - [@​klistwan](https://togithub.com/klistwan) made their first contribution in [astral-sh/ruff#6146 **Full Changelog**: astral-sh/ruff@v0.0.281...v0.0.282 ### [`v0.0.281`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.281) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.0.280...v0.0.281) <!-- Release notes generated using configuration in .github/release.yml at v0.0.281 --> #### What's Changed See the [release blog post](https://astral.sh/blog/ruff-v0.0.281) for more, including detailed descriptions of any newly added rules. ##### New rules - \[`flake8-pyi`] Implement `PYI018` by [@​LaBatata101](https://togithub.com/LaBatata101) in [astral-sh/ruff#6018 - \[`flake8-pyi`] Implement `PYI047` by [@​LaBatata101](https://togithub.com/LaBatata101) in [astral-sh/ruff#6134 - \[`flake8-pyi`] Implement `PYI049` by [@​LaBatata101](https://togithub.com/LaBatata101) in [astral-sh/ruff#6136 - \[`flake8-pyi`] Implement `PYI056` by [@​LaBatata101](https://togithub.com/LaBatata101) in [astral-sh/ruff#5959 - \[`flake8-pyi`] Implement `PYI046` by [@​LaBatata101](https://togithub.com/LaBatata101) in [astral-sh/ruff#6098 - \[`flake8-use-pathlib`] Implement `glob` (`PTH207`) by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#5939 - \[`flake8-use-pathlib`] Implement `os-sep-split` (`PTH206`) by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#5936 - \[`pycodestyle`] Implement `E241` and `E242` (tab/multiple ws after commas) by [@​akx](https://togithub.com/akx) in [astral-sh/ruff#6094 - \[`pylint`] Implement `self-assigning-variable` (`W0127`) by [@​tjkuson](https://togithub.com/tjkuson) in [astral-sh/ruff#6015 - \[`pylint`] Implement `eq-without-hash` rule (PLW1641) by [@​jelly](https://togithub.com/jelly) in [astral-sh/ruff#5955 - \[`pylint`] Implement `subprocess-popen-preexec-fn` (`W1509`) by [@​tjkuson](https://togithub.com/tjkuson) in [astral-sh/ruff#5978 ##### Rule changes - \[`flake8-bugbear`] Extends `B002` to detect unary prefix decrement operators by [@​tjkuson](https://togithub.com/tjkuson) in [astral-sh/ruff#5998 - \[`flake8-pytest-style`] Avoid raising PT012 for simple `with` statements by [@​harupy](https://togithub.com/harupy) in [astral-sh/ruff#6081 - \[`flake8-pytest-style`] Allow pytest.raises body to contain a single func or class definition by [@​harupy](https://togithub.com/harupy) in [astral-sh/ruff#6083 - \[`flake8-simplify`] Extend SIM118 with `not in` by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#5995 - \[`perflint`] Skip `PERF203` violations for multi-statement loops by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6145 - \[`pyupgrade`] Add support for `int`, `float`, `bool` in `UP018` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#6013 - \[`tryceratops`] Add suggested fix for `TRY201` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#6008 ##### Settings - Allow specification of `logging.Logger` re-exports via `logger-objects` by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5750 - Set default `max-complexity` to 10 for empty McCabe settings by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6073 - \[`pep8-naming`]: New config option `extend-ignore-names` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#6169 ##### Bug Fixes - Avoid raising `UP032` if `format` call arguments contain multiline expressions by [@​harupy](https://togithub.com/harupy) in [astral-sh/ruff#5971 - Fix `F507` false positive by [@​harupy](https://togithub.com/harupy) in [astral-sh/ruff#5986 - Fix logging rules with whitespace around dot by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6022 - Ignore end-of-line comments when dirtying if-with-same-arms branches by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6031 - Avoid treating `Literal` members as expressions with `__future__` by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6032 - Avoid refactoring `x[:1]`-like slices in RUF015 by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6150 - Avoid key-in-dict violations for `self` accesses by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6165 - Avoid falsely marking non-submodules as submodule aliases by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6182 - Flag `[` as an invalid noqa suffix by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#5982 - Ignore some common builtin overrides on standard library subclasses by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6074 - Avoid A003 violations for explicitly overridden methods by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6076 - Include file permissions in key for cached files by [@​zanieb](https://togithub.com/zanieb) in [astral-sh/ruff#5901 - Ignore `explicit-string-concatenation` on single line by [@​tjkuson](https://togithub.com/tjkuson) in [astral-sh/ruff#6028 - Fix `SIM102` to handle indented `elif` by [@​harupy](https://togithub.com/harupy) in [astral-sh/ruff#6072 - Raise `PTH201` for `Path("")` by [@​harupy](https://togithub.com/harupy) in [astral-sh/ruff#6095 - Update `SIM115` to cover `pathlib.Path.open` by [@​harupy](https://togithub.com/harupy) in [astral-sh/ruff#611 - Ignore end-of-line file exemption comments by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6160 - Implement `--diff` for Jupyter Notebooks by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#6149 - Skip BOM when determining Locator's line starts by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#6159 - Avoid parenthesizing comprehension element by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [astral-sh/ruff#6198 - Do not raise `SIM105` for non-exceptions by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#5985 #### New Contributors - [@​AlexWaygood](https://togithub.com/AlexWaygood) made their first contribution in [astral-sh/ruff#5973 - [@​RMPR](https://togithub.com/RMPR) made their first contribution in [astral-sh/ruff#6048 - [@​arembridge](https://togithub.com/arembridge) made their first contribution in [astral-sh/ruff#6079 - [@​Eutropios](https://togithub.com/Eutropios) made their first contribution in [astral-sh/ruff#6082 - [@​jelly](https://togithub.com/jelly) made their first contribution in [astral-sh/ruff#5955 **Full Changelog**: astral-sh/ruff@v0.0.280...v0.0.281 </details> --- ### 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. --- - [ ] <!-- 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/allenporter/pyrainbird). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4yNy4xIiwidXBkYXRlZEluVmVyIjoiMzYuMjcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information