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

Add Azure Devops as a -format option. #3335

Merged

Conversation

StefanBRas
Copy link
Contributor

@StefanBRas StefanBRas commented Mar 4, 2023

Adds option to print messages in an error format for azure pipelines, following https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#usage.

In the command line it looks like:

> cargo run -p ruff_cli -- check ../python_testing/example_tag.py --no-cache --format azure-devops
##vso[task.logissue type=error;sourcepath=/home/stefan/dev/python_testing/example_tag.py;linenumber=2;columnnumber=8;code=F401;]/home/stefan/dev/python_testing/example_tag.py:2:8: F401 `math` imported but unused
##vso[task.logissue type=error;sourcepath=/home/stefan/dev/python_testing/example_tag.py;linenumber=3;columnnumber=8;code=F401;]/home/stefan/dev/python_testing/example_tag.py:3:8: F401 `sys` imported but unused

In the pipeline logs it shows as:
image
And in the pipeline summary it shows as:
image

Which isn't particularly pretty but apparently how Azure Devops think it should be displayed.

@charliermarsh
Copy link
Member

Thanks!

I'm not sure if it makes sense have the error information in both the message and in the logging metadata, as it's then displayed twice but I just followed the same structure as the Github formatting. I can remove it from the message if you want :)

If the messages appear in the logs without repeating, then they can be omitted. I think we repeat them with GitHub because if you only output the annotations, the messages appear in the PR view but not in the raw logs.

@charliermarsh
Copy link
Member

Would it be reasonable to shorthand this to azure, rather than azure-devops?

@StefanBRas
Copy link
Contributor Author

Great, I'll remove the duplicate info then :)

I'm not sure about the renaming, since just "azure" refers to lots of different services where DevOps is one of them. But I can't come up with any other service that needs to emit logs from ruff, so it's probably fine.

I have no strong opinions either way, so I'll just rename it :)

@charliermarsh charliermarsh enabled auto-merge (squash) March 6, 2023 02:45
@charliermarsh charliermarsh merged commit 30c71dc into astral-sh:main Mar 6, 2023
renovate bot referenced this pull request in ixm-one/pytest-cmake-presets Mar 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://github.com/charliermarsh/ruff) | `^0.0.254` ->
`^0.0.255` |
[![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.255/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.255/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.255/compatibility-slim/0.0.254)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.255/confidence-slim/0.0.254)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/charliermarsh/ruff/compare/v0.0.254...v0.0.255)

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

#### What's Changed

##### Rules

- \[`flake8-pie`] Fix PIE802 broken auto-fix with trailing comma by
[@&#8203;JonathanPlasse](https://github.com/JonathanPlasse) in
[https://github.com/charliermarsh/ruff/pull/3402](https://github.com/charliermarsh/ruff/pull/3402)
- \[`flake8-pie`] Implement autofix for PIE810 by
[@&#8203;kyoto7250](https://github.com/kyoto7250) in
[https://github.com/charliermarsh/ruff/pull/3411](https://github.com/charliermarsh/ruff/pull/3411)
- \[`flake8-bugbear`] Add `flake8-bugbear`'s B030 rule by
[@&#8203;aacunningham](https://github.com/aacunningham) in
[https://github.com/charliermarsh/ruff/pull/3400](https://github.com/charliermarsh/ruff/pull/3400)
- \[`pycodestyle`] Add E231 by
[@&#8203;carlosmiei](https://github.com/carlosmiei) in
[https://github.com/charliermarsh/ruff/pull/3344](https://github.com/charliermarsh/ruff/pull/3344)
- \[`pyupgrade`] Flag deprecated (but renamed) imports in UP035 by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3448](https://github.com/charliermarsh/ruff/pull/3448)
- \[`pyupgrade`] Remap ChainMap, Counter, and OrderedDict imports to
collections by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3392](https://github.com/charliermarsh/ruff/pull/3392)
- \[`pylint`] C1901: compare-to-empty-string by
[@&#8203;AreamanM](https://github.com/AreamanM) in
[https://github.com/charliermarsh/ruff/pull/3405](https://github.com/charliermarsh/ruff/pull/3405)
- \[`pylint`] Implement W1508 invalid-envvar-default by
[@&#8203;latonis](https://github.com/latonis) in
[https://github.com/charliermarsh/ruff/pull/3449](https://github.com/charliermarsh/ruff/pull/3449)
- \[`pylint`] Implement E1507 invalid-envvar-value by
[@&#8203;latonis](https://github.com/latonis) in
[https://github.com/charliermarsh/ruff/pull/3467](https://github.com/charliermarsh/ruff/pull/3467)

##### Settings

- Infer `target-version` from project metadata by
[@&#8203;JonathanPlasse](https://github.com/JonathanPlasse) in
[https://github.com/charliermarsh/ruff/pull/3470](https://github.com/charliermarsh/ruff/pull/3470)
- Implement configuration options `runtime-evaluated-decorators` and
`runtime-evaluated-base-classes` for `flake8-type-checking` by
[@&#8203;sasanjac](https://github.com/sasanjac) in
[https://github.com/charliermarsh/ruff/pull/3292](https://github.com/charliermarsh/ruff/pull/3292)
- Add Azure DevOps as a `--format` option. by
[@&#8203;StefanBRas](https://github.com/StefanBRas) in
[https://github.com/charliermarsh/ruff/pull/3335](https://github.com/charliermarsh/ruff/pull/3335)

##### Bug Fixes

- Re-enable the T and C linter prefix selectors by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3452](https://github.com/charliermarsh/ruff/pull/3452)
- Treat unary operations on constants as constant-like by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3348](https://github.com/charliermarsh/ruff/pull/3348)
- Skip byte-order-mark at start of file by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3343](https://github.com/charliermarsh/ruff/pull/3343)
- Don't enforce typing-import rules in .pyi files by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3362](https://github.com/charliermarsh/ruff/pull/3362)
- Include entire prefix when reporting rule selector errors by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3375](https://github.com/charliermarsh/ruff/pull/3375)
- Handle multi-line fixes for byte-string prefixing by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3391](https://github.com/charliermarsh/ruff/pull/3391)
- Catch RET504 usages via decorators by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3395](https://github.com/charliermarsh/ruff/pull/3395)
- Ignore multiply-assigned variables in RET504 by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3393](https://github.com/charliermarsh/ruff/pull/3393)
- \[FIX] PYI011: recognize `Bool` / `Float` / `Complex` numbers as
simple defaults by [@&#8203;XuehaiPan](https://github.com/XuehaiPan)
in
[https://github.com/charliermarsh/ruff/pull/3459](https://github.com/charliermarsh/ruff/pull/3459)
- Respect ignores for runtime-import-in-type-checking-block (TCH004) by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3474](https://github.com/charliermarsh/ruff/pull/3474)
- Avoid panicking in invalid_escape_sequence by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3338](https://github.com/charliermarsh/ruff/pull/3338)
- fix: Emit a more useful error if an `extend` points at a non-existent
ruff.toml file. by [@&#8203;DanCardin](https://github.com/DanCardin)
in
[https://github.com/charliermarsh/ruff/pull/3417](https://github.com/charliermarsh/ruff/pull/3417)
- Respect `--show-fixes` with `--fix-only` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3426](https://github.com/charliermarsh/ruff/pull/3426)
- When "Args" and "Parameters" are present, prefer NumPy style by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3430](https://github.com/charliermarsh/ruff/pull/3430)
- Remove empty line after RUF100 auto-fix by
[@&#8203;JonathanPlasse](https://github.com/JonathanPlasse) in
[https://github.com/charliermarsh/ruff/pull/3414](https://github.com/charliermarsh/ruff/pull/3414)
- Avoid removing un-aliased exceptions in `OSError`-aliased handlers by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3451](https://github.com/charliermarsh/ruff/pull/3451)
- Use a hash to fingerprint GitLab CI output by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3456](https://github.com/charliermarsh/ruff/pull/3456)
- Avoid respecting noqa directives when RUF100 is enabled by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3469](https://github.com/charliermarsh/ruff/pull/3469)
- Output GitLab paths relative to `CI_PROJECT_DIR` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3475](https://github.com/charliermarsh/ruff/pull/3475)
- Implement an iterator for universal newlines by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3454](https://github.com/charliermarsh/ruff/pull/3454)

#### New Contributors

- [@&#8203;sasanjac](https://github.com/sasanjac) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3292](https://github.com/charliermarsh/ruff/pull/3292)
- [@&#8203;aacunningham](https://github.com/aacunningham) made their
first contribution in
[https://github.com/charliermarsh/ruff/pull/3380](https://github.com/charliermarsh/ruff/pull/3380)
- [@&#8203;orf](https://github.com/orf) made their first contribution
in
[https://github.com/charliermarsh/ruff/pull/3389](https://github.com/charliermarsh/ruff/pull/3389)
- [@&#8203;DanCardin](https://github.com/DanCardin) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3417](https://github.com/charliermarsh/ruff/pull/3417)
- [@&#8203;AreamanM](https://github.com/AreamanM) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3405](https://github.com/charliermarsh/ruff/pull/3405)
- [@&#8203;kyoto7250](https://github.com/kyoto7250) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3411](https://github.com/charliermarsh/ruff/pull/3411)
- [@&#8203;latonis](https://github.com/latonis) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3449](https://github.com/charliermarsh/ruff/pull/3449)
- [@&#8203;XuehaiPan](https://github.com/XuehaiPan) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3459](https://github.com/charliermarsh/ruff/pull/3459)
- [@&#8203;CalumY](https://github.com/CalumY) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3461](https://github.com/charliermarsh/ruff/pull/3461)
- [@&#8203;YDX-2147483647](https://github.com/YDX-2147483647) made
their first contribution in
[https://github.com/charliermarsh/ruff/pull/3473](https://github.com/charliermarsh/ruff/pull/3473)

**Full Changelog**:
astral-sh/ruff@v0.0.254...v0.0.255

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

Signed-off-by: Renovate Bot <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in allenporter/flux-local Mar 15, 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://github.com/charliermarsh/ruff) | `==0.0.254` ->
`==0.0.256` |
[![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.256/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.256/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.256/compatibility-slim/0.0.254)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.256/confidence-slim/0.0.254)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/charliermarsh/ruff/compare/v0.0.255...v0.0.256)

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

#### What's Changed

##### Bug Fixes

- PYI011: allow `math` constants in defaults by
[@&#8203;XuehaiPan](https://github.com/XuehaiPan) in
[https://github.com/charliermarsh/ruff/pull/3484](https://github.com/charliermarsh/ruff/pull/3484)
- Remove erroneous C4-to-C40 redirect by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3488](https://github.com/charliermarsh/ruff/pull/3488)
- fix lack of `not` in error message by
[@&#8203;Czaki](https://github.com/Czaki) in
[https://github.com/charliermarsh/ruff/pull/3497](https://github.com/charliermarsh/ruff/pull/3497)
- Ensure that redirect warnings appear exactly once per code by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3500](https://github.com/charliermarsh/ruff/pull/3500)
- Allow f-strings and concatenations in os.getenv by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3516](https://github.com/charliermarsh/ruff/pull/3516)
- Allow string percent formatting in os.getenv by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3518](https://github.com/charliermarsh/ruff/pull/3518)
- Refine complexity rules for try-except-else-finally by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3519](https://github.com/charliermarsh/ruff/pull/3519)
- Replicate inline comments when splitting single-line imports by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3521](https://github.com/charliermarsh/ruff/pull/3521)
- Avoid PEP 604 isinstance errors for starred tuples by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3527](https://github.com/charliermarsh/ruff/pull/3527)
- Avoid tracking as-imports separately with force-single-line by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3530](https://github.com/charliermarsh/ruff/pull/3530)
- Fix PYI011 and add auto-fix by
[@&#8203;JonathanPlasse](https://github.com/JonathanPlasse) in
[https://github.com/charliermarsh/ruff/pull/3492](https://github.com/charliermarsh/ruff/pull/3492)
- Avoid PEP 604 panic with empty tuple by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3526](https://github.com/charliermarsh/ruff/pull/3526)
- Add last remaining deprecated typing imports by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3529](https://github.com/charliermarsh/ruff/pull/3529)
- Avoid unused argument violations in .pyi files by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3533](https://github.com/charliermarsh/ruff/pull/3533)

##### Other Changes

- Include individual path checks in --verbose logging by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3489](https://github.com/charliermarsh/ruff/pull/3489)
- Allow `# ruff:` prefix for isort action comments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3493](https://github.com/charliermarsh/ruff/pull/3493)

**Full Changelog**:
astral-sh/ruff@v0.0.255...v0.0.256

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

[Compare
Source](https://github.com/charliermarsh/ruff/compare/v0.0.254...v0.0.255)

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

#### What's Changed

##### Rules

- \[`flake8-pie`] Fix PIE802 broken auto-fix with trailing comma by
[@&#8203;JonathanPlasse](https://github.com/JonathanPlasse) in
[https://github.com/charliermarsh/ruff/pull/3402](https://github.com/charliermarsh/ruff/pull/3402)
- \[`flake8-pie`] Implement autofix for PIE810 by
[@&#8203;kyoto7250](https://github.com/kyoto7250) in
[https://github.com/charliermarsh/ruff/pull/3411](https://github.com/charliermarsh/ruff/pull/3411)
- \[`flake8-bugbear`] Add `flake8-bugbear`'s B030 rule by
[@&#8203;aacunningham](https://github.com/aacunningham) in
[https://github.com/charliermarsh/ruff/pull/3400](https://github.com/charliermarsh/ruff/pull/3400)
- \[`pycodestyle`] Add E231 by
[@&#8203;carlosmiei](https://github.com/carlosmiei) in
[https://github.com/charliermarsh/ruff/pull/3344](https://github.com/charliermarsh/ruff/pull/3344)
- \[`pyupgrade`] Flag deprecated (but renamed) imports in UP035 by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3448](https://github.com/charliermarsh/ruff/pull/3448)
- \[`pyupgrade`] Remap ChainMap, Counter, and OrderedDict imports to
collections by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3392](https://github.com/charliermarsh/ruff/pull/3392)
- \[`pylint`] C1901: compare-to-empty-string by
[@&#8203;AreamanM](https://github.com/AreamanM) in
[https://github.com/charliermarsh/ruff/pull/3405](https://github.com/charliermarsh/ruff/pull/3405)
- \[`pylint`] Implement W1508 invalid-envvar-default by
[@&#8203;latonis](https://github.com/latonis) in
[https://github.com/charliermarsh/ruff/pull/3449](https://github.com/charliermarsh/ruff/pull/3449)
- \[`pylint`] Implement E1507 invalid-envvar-value by
[@&#8203;latonis](https://github.com/latonis) in
[https://github.com/charliermarsh/ruff/pull/3467](https://github.com/charliermarsh/ruff/pull/3467)

##### Settings

- Infer `target-version` from project metadata by
[@&#8203;JonathanPlasse](https://github.com/JonathanPlasse) in
[https://github.com/charliermarsh/ruff/pull/3470](https://github.com/charliermarsh/ruff/pull/3470)
- Implement configuration options `runtime-evaluated-decorators` and
`runtime-evaluated-base-classes` for `flake8-type-checking` by
[@&#8203;sasanjac](https://github.com/sasanjac) in
[https://github.com/charliermarsh/ruff/pull/3292](https://github.com/charliermarsh/ruff/pull/3292)
- Add Azure DevOps as a `--format` option. by
[@&#8203;StefanBRas](https://github.com/StefanBRas) in
[https://github.com/charliermarsh/ruff/pull/3335](https://github.com/charliermarsh/ruff/pull/3335)

##### Bug Fixes

- Re-enable the T and C linter prefix selectors by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3452](https://github.com/charliermarsh/ruff/pull/3452)
- Treat unary operations on constants as constant-like by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3348](https://github.com/charliermarsh/ruff/pull/3348)
- Skip byte-order-mark at start of file by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3343](https://github.com/charliermarsh/ruff/pull/3343)
- Don't enforce typing-import rules in .pyi files by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3362](https://github.com/charliermarsh/ruff/pull/3362)
- Include entire prefix when reporting rule selector errors by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3375](https://github.com/charliermarsh/ruff/pull/3375)
- Handle multi-line fixes for byte-string prefixing by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3391](https://github.com/charliermarsh/ruff/pull/3391)
- Catch RET504 usages via decorators by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3395](https://github.com/charliermarsh/ruff/pull/3395)
- Ignore multiply-assigned variables in RET504 by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3393](https://github.com/charliermarsh/ruff/pull/3393)
- \[FIX] PYI011: recognize `Bool` / `Float` / `Complex` numbers as
simple defaults by [@&#8203;XuehaiPan](https://github.com/XuehaiPan)
in
[https://github.com/charliermarsh/ruff/pull/3459](https://github.com/charliermarsh/ruff/pull/3459)
- Respect ignores for runtime-import-in-type-checking-block (TCH004) by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3474](https://github.com/charliermarsh/ruff/pull/3474)
- Avoid panicking in invalid_escape_sequence by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3338](https://github.com/charliermarsh/ruff/pull/3338)
- fix: Emit a more useful error if an `extend` points at a non-existent
ruff.toml file. by [@&#8203;DanCardin](https://github.com/DanCardin)
in
[https://github.com/charliermarsh/ruff/pull/3417](https://github.com/charliermarsh/ruff/pull/3417)
- Respect `--show-fixes` with `--fix-only` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3426](https://github.com/charliermarsh/ruff/pull/3426)
- When "Args" and "Parameters" are present, prefer NumPy style by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3430](https://github.com/charliermarsh/ruff/pull/3430)
- Remove empty line after RUF100 auto-fix by
[@&#8203;JonathanPlasse](https://github.com/JonathanPlasse) in
[https://github.com/charliermarsh/ruff/pull/3414](https://github.com/charliermarsh/ruff/pull/3414)
- Avoid removing un-aliased exceptions in `OSError`-aliased handlers by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3451](https://github.com/charliermarsh/ruff/pull/3451)
- Use a hash to fingerprint GitLab CI output by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3456](https://github.com/charliermarsh/ruff/pull/3456)
- Avoid respecting noqa directives when RUF100 is enabled by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3469](https://github.com/charliermarsh/ruff/pull/3469)
- Output GitLab paths relative to `CI_PROJECT_DIR` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3475](https://github.com/charliermarsh/ruff/pull/3475)
- Implement an iterator for universal newlines by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/charliermarsh/ruff/pull/3454](https://github.com/charliermarsh/ruff/pull/3454)

#### New Contributors

- [@&#8203;sasanjac](https://github.com/sasanjac) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3292](https://github.com/charliermarsh/ruff/pull/3292)
- [@&#8203;aacunningham](https://github.com/aacunningham) made their
first contribution in
[https://github.com/charliermarsh/ruff/pull/3380](https://github.com/charliermarsh/ruff/pull/3380)
- [@&#8203;orf](https://github.com/orf) made their first contribution
in
[https://github.com/charliermarsh/ruff/pull/3389](https://github.com/charliermarsh/ruff/pull/3389)
- [@&#8203;DanCardin](https://github.com/DanCardin) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3417](https://github.com/charliermarsh/ruff/pull/3417)
- [@&#8203;AreamanM](https://github.com/AreamanM) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3405](https://github.com/charliermarsh/ruff/pull/3405)
- [@&#8203;kyoto7250](https://github.com/kyoto7250) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3411](https://github.com/charliermarsh/ruff/pull/3411)
- [@&#8203;latonis](https://github.com/latonis) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3449](https://github.com/charliermarsh/ruff/pull/3449)
- [@&#8203;XuehaiPan](https://github.com/XuehaiPan) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3459](https://github.com/charliermarsh/ruff/pull/3459)
- [@&#8203;CalumY](https://github.com/CalumY) made their first
contribution in
[https://github.com/charliermarsh/ruff/pull/3461](https://github.com/charliermarsh/ruff/pull/3461)
- [@&#8203;YDX-2147483647](https://github.com/YDX-2147483647) made
their first contribution in
[https://github.com/charliermarsh/ruff/pull/3473](https://github.com/charliermarsh/ruff/pull/3473)

**Full Changelog**:
astral-sh/ruff@v0.0.254...v0.0.255

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

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants