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
Remove multiple-statements-on-one-line-def (E704) #2773
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
charliermarsh
force-pushed
the
charlie/ignore
branch
from
February 11, 2023 17:34
e30a564
to
2c88720
Compare
charliermarsh
force-pushed
the
charlie/ignore
branch
from
February 11, 2023 17:34
2c88720
to
14866f2
Compare
You forgot to run |
messense
added a commit
to PyO3/maturin
that referenced
this pull request
Feb 12, 2023
This reverts commit 8859eea. The rule was removed from Ruff: astral-sh/ruff#2773
renovate bot
added a commit
to ixm-one/pytest-cmake-presets
that referenced
this pull request
Feb 13, 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.245` -> `^0.0.246` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.246/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.246/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.246/compatibility-slim/0.0.245)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.246/confidence-slim/0.0.245)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>charliermarsh/ruff</summary> ### [`v0.0.246`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.246) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.245...v0.0.246) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Breaking Changes - Remove multiple-statements-on-one-line-def (E704) by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2773 ##### Rules - \[`flake8-pyi`]: add rules for unrecognized platform check (PYI007, PYI008) by [@​SigureMo](https://togithub.com/SigureMo) in [astral-sh/ruff#2805 - \[`flake8-simplify`]: combine-if-conditions by [@​colin99d](https://togithub.com/colin99d) in [astral-sh/ruff#2823 - \[`flake8-django`] Implemented flake8-django plugin rules by [@​konysko](https://togithub.com/konysko) in [astral-sh/ruff#2586 ##### CLI - Implement `config` subcommand by [@​not-my-profile](https://togithub.com/not-my-profile) in [astral-sh/ruff#2775 - Add rendering of rule markdown for terminal output by [@​ngnpope](https://togithub.com/ngnpope) in [astral-sh/ruff#2747 - Add `--show-fixes` flag to show applied fixes by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2707 ##### Settings - implemented option lines-between-types for isort by [@​PushUpek](https://togithub.com/PushUpek) in [astral-sh/ruff#2762 ##### Autofix - \[`pyflakes`] Support unused variable removal in multi-assignment statements by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2786 - \[`flake8-comprehensions`] autofix C414 and C417 + bugfix by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#2693 - \[`flake8-comprehensions`] bugfix for C413 autofix by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#2804 - \[`flake8-simplify`] Use smarter inversion for comparison checks by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2831 - \[`flake8-comprehensions`] improve autofix for C401, C402 and C417 by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#2806 ##### Bug Fixes - Ignore colon-after-lambda in compound statement rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2771 - Don't treat all future import accesses as non-runtime by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2774 - Avoid treating deferred string annotations as required-at-runtime by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2779 - Respect continuations in `noqa` enforcement by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2783 - Improve unused-variable autofixes for with statements by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2785 - Refactor generator to use Astor-derived precedence levels by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2798 - Allow private accesses on super calls by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2815 - Allow non-verbose raise when cause is present by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2816 - Avoid duplicates in if-with-same-arms by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2827 - Include package inference during --add-noqa command by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2832 - Allow compound statements of single ellipsis by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2837 #### New Contributors - [@​trag1c](https://togithub.com/trag1c) made their first contribution in [astral-sh/ruff#2757 - [@​PushUpek](https://togithub.com/PushUpek) made their first contribution in [astral-sh/ruff#2762 - [@​konysko](https://togithub.com/konysko) made their first contribution in [astral-sh/ruff#2586 - [@​SigureMo](https://togithub.com/SigureMo) made their first contribution in [astral-sh/ruff#2805 **Full Changelog**: astral-sh/ruff@v0.0.245...v0.0.246 </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:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMzMuMCIsInVwZGF0ZWRJblZlciI6IjM0LjEzMy4wIn0=--> Signed-off-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
added a commit
to allenporter/flux-local
that referenced
this pull request
Feb 14, 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.245` -> `==0.0.246` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.246/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.246/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.246/compatibility-slim/0.0.245)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.246/confidence-slim/0.0.245)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>charliermarsh/ruff</summary> ### [`v0.0.246`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.246) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.245...v0.0.246) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Breaking Changes - Remove multiple-statements-on-one-line-def (E704) by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2773 ##### Rules - \[`flake8-pyi`]: add rules for unrecognized platform check (PYI007, PYI008) by [@​SigureMo](https://togithub.com/SigureMo) in [astral-sh/ruff#2805 - \[`flake8-simplify`]: combine-if-conditions by [@​colin99d](https://togithub.com/colin99d) in [astral-sh/ruff#2823 - \[`flake8-django`] Implemented flake8-django plugin rules by [@​konysko](https://togithub.com/konysko) in [astral-sh/ruff#2586 ##### CLI - Implement `config` subcommand by [@​not-my-profile](https://togithub.com/not-my-profile) in [astral-sh/ruff#2775 - Add rendering of rule markdown for terminal output by [@​ngnpope](https://togithub.com/ngnpope) in [astral-sh/ruff#2747 - Add `--show-fixes` flag to show applied fixes by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2707 ##### Settings - implemented option lines-between-types for isort by [@​PushUpek](https://togithub.com/PushUpek) in [astral-sh/ruff#2762 ##### Autofix - \[`pyflakes`] Support unused variable removal in multi-assignment statements by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2786 - \[`flake8-comprehensions`] autofix C414 and C417 + bugfix by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#2693 - \[`flake8-comprehensions`] bugfix for C413 autofix by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#2804 - \[`flake8-simplify`] Use smarter inversion for comparison checks by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2831 - \[`flake8-comprehensions`] improve autofix for C401, C402 and C417 by [@​sbrugman](https://togithub.com/sbrugman) in [astral-sh/ruff#2806 ##### Bug Fixes - Ignore colon-after-lambda in compound statement rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2771 - Don't treat all future import accesses as non-runtime by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2774 - Avoid treating deferred string annotations as required-at-runtime by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2779 - Respect continuations in `noqa` enforcement by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2783 - Improve unused-variable autofixes for with statements by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2785 - Refactor generator to use Astor-derived precedence levels by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2798 - Allow private accesses on super calls by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2815 - Allow non-verbose raise when cause is present by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2816 - Avoid duplicates in if-with-same-arms by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2827 - Include package inference during --add-noqa command by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2832 - Allow compound statements of single ellipsis by [@​charliermarsh](https://togithub.com/charliermarsh) in [astral-sh/ruff#2837 #### New Contributors - [@​trag1c](https://togithub.com/trag1c) made their first contribution in [astral-sh/ruff#2757 - [@​PushUpek](https://togithub.com/PushUpek) made their first contribution in [astral-sh/ruff#2762 - [@​konysko](https://togithub.com/konysko) made their first contribution in [astral-sh/ruff#2586 - [@​SigureMo](https://togithub.com/SigureMo) made their first contribution in [astral-sh/ruff#2805 **Full Changelog**: astral-sh/ruff@v0.0.245...v0.0.246 </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://app.renovatebot.com/dashboard#github/allenporter/flux-local). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMzMuMCIsInVwZGF0ZWRJblZlciI6IjM0LjEzMy4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Synss
added a commit
to Synss/python-mbedtls
that referenced
this pull request
Mar 7, 2023
Ruff completely removed the rule in 0.0.246. See also: astral-sh/ruff#2773
Synss
added a commit
to Synss/python-mbedtls
that referenced
this pull request
Mar 7, 2023
Ruff completely removed the rule in 0.0.246. See also: astral-sh/ruff#2773
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I implemented this, I didn't realize that it's off-by-default in pycodestyle and Flake8, because they are "not rules unanimously accepted, and PEP 8 does not enforce them". Rather than opt-in to the complexity of maintaining an ignore list, I'd rather just omit those rules entirely.
See: https://pycodestyle.pycqa.org/en/latest/intro.html.
Closes #2763.