Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid collapsing elif and else branches during import sorting #5964

Merged
merged 1 commit into from Jul 22, 2023

Conversation

charliermarsh
Copy link
Member

Summary

I ran into this in the wild. It looks like Ruff will collapse the else and elif branches here (i.e., it doesn't recognize that they're too independent import blocks):

if "sdist" in cmds:
    _sdist = cmds["sdist"]
elif "setuptools" in sys.modules:
    from setuptools.command.sdist import sdist as _sdist
else:
    from setuptools.command.sdist import sdist as _sdist
    from distutils.command.sdist import sdist as _sdist

Likely fallout from the elif_else_branches refactor.

@charliermarsh charliermarsh marked this pull request as ready for review July 22, 2023 02:12
@charliermarsh charliermarsh changed the title Avoid collapsing elif and else branches during import sorting Avoid collapsing elif and else branches during import sorting Jul 22, 2023
@charliermarsh charliermarsh added the bug Something isn't working label Jul 22, 2023
@charliermarsh
Copy link
Member Author

Probably gonna cut another release to get this out.

@charliermarsh charliermarsh enabled auto-merge (squash) July 22, 2023 02:14
@charliermarsh charliermarsh merged commit 94a004e into main Jul 22, 2023
15 checks passed
@charliermarsh charliermarsh deleted the charlie/elif branch July 22, 2023 02:18
@github-actions
Copy link
Contributor

github-actions bot commented Jul 22, 2023

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

Benchmark

Linux

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.00      9.3±0.03ms     4.4 MB/sec    1.00      9.3±0.03ms     4.4 MB/sec
formatter/numpy/ctypeslib.py               1.01   1857.7±1.93µs     9.0 MB/sec    1.00   1842.8±3.25µs     9.0 MB/sec
formatter/numpy/globals.py                 1.00    201.7±0.41µs    14.6 MB/sec    1.00    201.1±0.24µs    14.7 MB/sec
formatter/pydantic/types.py                1.00      4.0±0.01ms     6.3 MB/sec    1.00      4.0±0.00ms     6.3 MB/sec
linter/all-rules/large/dataset.py          1.00     12.9±0.03ms     3.1 MB/sec    1.00     12.9±0.05ms     3.1 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      3.3±0.01ms     5.0 MB/sec    1.00      3.3±0.00ms     5.0 MB/sec
linter/all-rules/numpy/globals.py          1.00    436.4±0.63µs     6.8 MB/sec    1.00    436.7±0.51µs     6.8 MB/sec
linter/all-rules/pydantic/types.py         1.00      5.9±0.03ms     4.3 MB/sec    1.00      5.9±0.04ms     4.3 MB/sec
linter/default-rules/large/dataset.py      1.00      6.6±0.01ms     6.2 MB/sec    1.00      6.6±0.07ms     6.2 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00   1420.5±3.48µs    11.7 MB/sec    1.00   1422.7±2.65µs    11.7 MB/sec
linter/default-rules/numpy/globals.py      1.00    157.9±0.25µs    18.7 MB/sec    1.00    157.7±0.26µs    18.7 MB/sec
linter/default-rules/pydantic/types.py     1.00      3.0±0.00ms     8.5 MB/sec    1.00      3.0±0.01ms     8.5 MB/sec

Windows

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.00     11.3±0.14ms     3.6 MB/sec    1.01     11.5±0.16ms     3.6 MB/sec
formatter/numpy/ctypeslib.py               1.00      2.2±0.04ms     7.6 MB/sec    1.00      2.2±0.04ms     7.5 MB/sec
formatter/numpy/globals.py                 1.00    244.5±8.69µs    12.1 MB/sec    1.02   249.9±14.01µs    11.8 MB/sec
formatter/pydantic/types.py                1.00      4.8±0.07ms     5.3 MB/sec    1.01      4.9±0.07ms     5.2 MB/sec
linter/all-rules/large/dataset.py          1.00     16.1±0.15ms     2.5 MB/sec    1.00     16.1±0.13ms     2.5 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      4.2±0.07ms     4.0 MB/sec    1.00      4.2±0.06ms     4.0 MB/sec
linter/all-rules/numpy/globals.py          1.00   501.1±11.44µs     5.9 MB/sec    1.00    498.7±7.60µs     5.9 MB/sec
linter/all-rules/pydantic/types.py         1.00      7.3±0.10ms     3.5 MB/sec    1.00      7.3±0.11ms     3.5 MB/sec
linter/default-rules/large/dataset.py      1.00      8.3±0.07ms     4.9 MB/sec    1.01      8.4±0.09ms     4.9 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00  1727.4±23.61µs     9.6 MB/sec    1.00  1720.1±21.03µs     9.7 MB/sec
linter/default-rules/numpy/globals.py      1.00    194.3±3.85µs    15.2 MB/sec    1.00    193.6±3.35µs    15.2 MB/sec
linter/default-rules/pydantic/types.py     1.01      3.7±0.04ms     6.9 MB/sec    1.00      3.7±0.03ms     6.9 MB/sec

renovate bot added a commit to allenporter/flux-local that referenced this pull request Jul 24, 2023
[![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.278`
-> `==0.0.280` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.280?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.280?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.278/0.0.280?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.278/0.0.280?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>astral-sh/ruff (ruff)</summary>

###
[`v0.0.280`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.280)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.279...v0.0.280)

<!-- Release notes generated using configuration in .github/release.yml
at v0.0.280 -->

#### What's Changed

##### Bug Fixes

- Avoid collapsing `elif` and `else` branches during import sorting by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5964

**Full Changelog**:
astral-sh/ruff@v0.0.279...v0.0.280

###
[`v0.0.279`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.279)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.278...v0.0.279)

<!-- Release notes generated using configuration in .github/release.yml
at v0.0.279 -->

#### What's Changed

##### Rules

- \[`flake8-pyi`] Implement flake8-pyi's PYI026 by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[astral-sh/ruff#5844
- \[`flake8-pyi`] Implement flake8-pyi's `PYI017` by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[astral-sh/ruff#5895
- \[`flake8-pyi`] Implement flake8-pyi's `PYI036` by
[@&#8203;density](https://togithub.com/density) in
[astral-sh/ruff#5668
- \[`flake8-pyi`] Implement flake8-pyi's `PYI041` by
[@&#8203;density](https://togithub.com/density) in
[astral-sh/ruff#5722
- \[`flake8-use-pathlib`] Implement `os-path-getsize` and
`os-path-get(a|m|c)-time` (`PTH202-205`) by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5835
- \[`flake8-use-pathlib`] Implement `path-constructor-default-argument`
(`PTH201`) by [@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5833
- \[`pandas-vet`] Implement constant series rule (`PD101`) by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5802
- \[`pylint`] Implement Pylint's `consider-using-in` (`PLR1714`) by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#5193

##### Rule changes

- \[`flake8-annotations`] Check for `Any` in other types for `ANN401` by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#5601
- \[`flake8-bugbear`] Add autofix for B004 by
[@&#8203;density](https://togithub.com/density) in
[astral-sh/ruff#5788
- \[`flake8-bugbear`] Remove `B904`'s lowercase exemption by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5751
- \[`flake8-use-pathlib`] extend PTH118 with `os.sep` by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5935
- \[`pyupgrade`] Expand scope of `quoted-annotation` rule (`UP037`) by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5766
- \[`pyupgrade`] Extend PEP 604 rewrites to support some quoted
annotations by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5725
- \[`ruff`] Expand `RUF015` to include all expression types by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5767

##### Bug Fixes

- Consider single element subscript expr for implicit optional by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#5717
- Ignore `Enum`-and-`str` subclasses for slots enforcement by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5749
- Avoid removing raw strings in comparison fixes by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5755
- Fix nested calls to `sorted` with differing arguments by
[@&#8203;density](https://togithub.com/density) in
[astral-sh/ruff#5761
- Use unused variable detection to power `incorrect-dict-iterator` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5763
- Include alias when formatting import-from structs by
[@&#8203;guillaumeLepape](https://togithub.com/guillaumeLepape) in
[astral-sh/ruff#5786
- Make `lint_only` aware of the source kind by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#5876
- Restore `redefined-while-unused` violations in classes by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5926
- Flatten nested tuples when fixing UP007 violations by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5724
- Ignore Jupyter Notebooks for `--add-noqa` by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#5727
- Avoid checking `EXE001` and `EXE002` on WSL by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#5735
- Properly group assignment targets by
[@&#8203;MichaReiser](https://togithub.com/MichaReiser) in
[astral-sh/ruff#5728
- Avoid stack overflow for non-BitOr binary types by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5743
- Move function visit out of `Expr::Call` branches by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5772
- \[B006] Add bytes to immutable types by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#5776
- Format `SetComp` by [@&#8203;lkh42t](https://togithub.com/lkh42t) in
[astral-sh/ruff#5774
- Gate `runtime-import-in-type-checking-block` (`TCH004`) behind enabled
flag by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5789
- perf: only compute start offset for overlong lines by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5811
- Change `pandas-use-of-dot-read-table` rule to emit only when
`read_table` is used on CSV data by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#5807
- Do not fix `NamedTuple` calls containing both a list of fields and
keywords by [@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#5799
- Ignore directories when collecting files to lint by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#5775
- Add filename to `noqa` warnings by
[@&#8203;sobolevn](https://togithub.com/sobolevn) in
[astral-sh/ruff#5856
- Handle io errors gracefully by
[@&#8203;konstin](https://togithub.com/konstin) in
[astral-sh/ruff#5611
- Allow `respect_gitignore` when not in a git repo by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#5937

#### New Contributors

- [@&#8203;eggplants](https://togithub.com/eggplants) made their first
contribution in
[astral-sh/ruff#5741
- [@&#8203;guillaumeLepape](https://togithub.com/guillaumeLepape) made
their first contribution in
[astral-sh/ruff#5786
- [@&#8203;odiseo0](https://togithub.com/odiseo0) made their first
contribution in
[astral-sh/ruff#5888
- [@&#8203;DavidCain](https://togithub.com/DavidCain) made their first
contribution in
[astral-sh/ruff#5889
- [@&#8203;LaBatata101](https://togithub.com/LaBatata101) made their
first contribution in
[astral-sh/ruff#5844

**Full Changelog**:
astral-sh/ruff@v0.0.278...v0.0.279

</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/flux-local).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
bruxisma pushed a commit to ixm-one/pytest-cmake-presets that referenced this pull request Jul 31, 2023
[![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.279`
-> `^0.0.281` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.281?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.281?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.279/0.0.281?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.279/0.0.281?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>astral-sh/ruff (ruff)</summary>

###
[`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
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[astral-sh/ruff#6018
- \[`flake8-pyi`] Implement `PYI047` by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[astral-sh/ruff#6134
- \[`flake8-pyi`] Implement `PYI049` by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[astral-sh/ruff#6136
- \[`flake8-pyi`] Implement `PYI056` by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[astral-sh/ruff#5959
- \[`flake8-pyi`] Implement `PYI046` by
[@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[astral-sh/ruff#6098
- \[`flake8-use-pathlib`] Implement `glob` (`PTH207`) by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5939
- \[`flake8-use-pathlib`] Implement `os-sep-split` (`PTH206`) by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5936
- \[`pycodestyle`] Implement `E241` and `E242` (tab/multiple ws after
commas) by [@&#8203;akx](https://togithub.com/akx) in
[astral-sh/ruff#6094
- \[`pylint`] Implement `self-assigning-variable` (`W0127`) by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#6015
- \[`pylint`] Implement `eq-without-hash` rule (PLW1641) by
[@&#8203;jelly](https://togithub.com/jelly) in
[astral-sh/ruff#5955
- \[`pylint`] Implement `subprocess-popen-preexec-fn` (`W1509`) by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#5978

##### Rule changes

- \[`flake8-bugbear`] Extends `B002` to detect unary prefix decrement
operators by [@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#5998
- \[`flake8-pytest-style`] Avoid raising PT012 for simple `with`
statements by [@&#8203;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
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6083
- \[`flake8-simplify`] Extend SIM118 with `not in` by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5995
- \[`perflint`] Skip `PERF203` violations for multi-statement loops by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6145
- \[`pyupgrade`] Add support for `int`, `float`, `bool` in `UP018` by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#6013
- \[`tryceratops`] Add suggested fix for `TRY201` by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#6008

##### Settings

- Allow specification of `logging.Logger` re-exports via
`logger-objects` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5750
- Set default `max-complexity` to 10 for empty McCabe settings by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6073
- \[`pep8-naming`]: New config option `extend-ignore-names` by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#6169

##### Bug Fixes

- Avoid raising `UP032` if `format` call arguments contain multiline
expressions by [@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#5971
- Fix `F507` false positive by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#5986
- Fix logging rules with whitespace around dot by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6022
- Ignore end-of-line comments when dirtying if-with-same-arms branches
by [@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6031
- Avoid treating `Literal` members as expressions with `__future__` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6032
- Avoid refactoring `x[:1]`-like slices in RUF015 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6150
- Avoid key-in-dict violations for `self` accesses by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6165
- Avoid falsely marking non-submodules as submodule aliases by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6182
- Flag `[` as an invalid noqa suffix by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5982
- Ignore some common builtin overrides on standard library subclasses by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6074
- Avoid A003 violations for explicitly overridden methods by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6076
- Include file permissions in key for cached files by
[@&#8203;zanieb](https://togithub.com/zanieb) in
[astral-sh/ruff#5901
- Ignore `explicit-string-concatenation` on single line by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#6028
- Fix `SIM102` to handle indented `elif` by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6072
- Raise `PTH201` for `Path("")` by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6095
- Update `SIM115` to cover `pathlib.Path.open` by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#611
- Ignore end-of-line file exemption comments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6160
- Implement `--diff` for Jupyter Notebooks by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#6149
- Skip BOM when determining Locator's line starts by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6159
- Avoid parenthesizing comprehension element by
[@&#8203;dhruvmanila](https://togithub.com/dhruvmanila) in
[astral-sh/ruff#6198
- Do not raise `SIM105` for non-exceptions by
[@&#8203;sbrugman](https://togithub.com/sbrugman) in
[astral-sh/ruff#5985

#### New Contributors

- [@&#8203;AlexWaygood](https://togithub.com/AlexWaygood) made their
first contribution in
[astral-sh/ruff#5973
- [@&#8203;RMPR](https://togithub.com/RMPR) made their first
contribution in
[astral-sh/ruff#6048
- [@&#8203;arembridge](https://togithub.com/arembridge) made their first
contribution in
[astral-sh/ruff#6079
- [@&#8203;Eutropios](https://togithub.com/Eutropios) made their first
contribution in
[astral-sh/ruff#6082
- [@&#8203;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

###
[`v0.0.280`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.280)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.279...v0.0.280)

<!-- Release notes generated using configuration in .github/release.yml
at v0.0.280 -->

#### What's Changed

##### Bug Fixes

- Avoid collapsing `elif` and `else` branches during import sorting by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#5964

**Full Changelog**:
astral-sh/ruff@v0.0.279...v0.0.280

</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:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMjQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant