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 renaming unused loop variables with deferred usages #2509

Merged
merged 1 commit into from Feb 3, 2023

Conversation

charliermarsh
Copy link
Member

Closes #2207.

@charliermarsh charliermarsh added the bug Something isn't working label Feb 3, 2023
@charliermarsh charliermarsh merged commit a074625 into main Feb 3, 2023
@charliermarsh charliermarsh deleted the charlie/loop branch February 3, 2023 01:59
renovate bot added a commit to ixm-one/pytest-cmake-presets that referenced this pull request Feb 4, 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://togithub.com/charliermarsh/ruff) | `^0.0.240` ->
`^0.0.241` |
[![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.241/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.241/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.241/compatibility-slim/0.0.240)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.241/confidence-slim/0.0.240)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>charliermarsh/ruff</summary>

###
[`v0.0.241`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.241)

[Compare
Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.240...v0.0.241)

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

#### What's Changed

##### Deprecates

- Soft-deprecate `update-check` by
[@&#8203;akx](https://togithub.com/akx) in
[astral-sh/ruff#2530

##### Rules

- feat: add autofix for PLR0402 by
[@&#8203;spaceone](https://togithub.com/spaceone) in
[astral-sh/ruff#2504
- Allow F811 noqa declarations on containing import lines by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2553

##### Features

- Mark fixable issues in printer output by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2500
- Always report parse errors back to the user by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2505
- Notify user if autofix introduces syntax error by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2507
- Add `known-standard-library` for each Python version by
[@&#8203;JonathanPlasse](https://togithub.com/JonathanPlasse) in
[astral-sh/ruff#2491

##### Bug Fixes

- Avoid renaming unused loop variables with deferred usages by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2509
- \[`flake8-self`] Fix False Negative Issue on Rule `SLF001` by
[@&#8203;saadmk11](https://togithub.com/saadmk11) in
[astral-sh/ruff#2527
- Minor fixes to PLR0915 logic by
[@&#8203;chanman3388](https://togithub.com/chanman3388) in
[astral-sh/ruff#2518
- Exit upon showing files with `--show-files` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2543
- Ignore direct source-children in `implicit-namespace-package` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2560
- Allow `list()` and `tuple()` calls in `__all__` assignments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2499
- Don't walk past project root when figuring out exclusion by
[@&#8203;akx](https://togithub.com/akx) in
[astral-sh/ruff#2471
- Avoid hang when detecting trailing comments by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#2549

#### New Contributors

- [@&#8203;JacobCoffee](https://togithub.com/JacobCoffee) made their
first contribution in
[astral-sh/ruff#2516
- [@&#8203;Pierre-Sassoulas](https://togithub.com/Pierre-Sassoulas) made
their first contribution in
[astral-sh/ruff#2559

**Full Changelog**:
astral-sh/ruff@v0.0.240...v0.0.241

</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://app.renovatebot.com/dashboard#github/ixm-one/pytest-cmake-presets).

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

Signed-off-by: Renovate Bot <bot@renovateapp.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.

B007 breaks code
1 participant