chore(deps): update dependency ruff to v0.5.0 (#730)

[![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://docs.astral.sh/ruff)
([source](https://togithub.com/astral-sh/ruff),
[changelog](https://togithub.com/astral-sh/ruff/blob/main/CHANGELOG.md))
| `0.4.10` -> `0.5.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.4.10/0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.4.10/0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v0.5.0`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#050)

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

Check out the [blog post](https://astral.sh/blog/ruff-v0.5.0) for a
migration guide and overview of the changes!

##### Breaking changes

See also, the "Remapped rules" section which may result in disabled
rules.

- Follow the XDG specification to discover user-level configurations on
macOS (same as on other Unix platforms)
-   Selecting `ALL` now excludes deprecated rules
- The released archives now include an extra level of nesting, which can
be removed with `--strip-components=1` when untarring.
- The release artifact's file name no longer includes the version tag.
This enables users to install via `/latest` URLs on GitHub.

##### Deprecations

The following rules are now deprecated:

- [`syntax-error`](https://docs.astral.sh/ruff/rules/syntax-error/)
(`E999`): Syntax errors are now always shown

##### Remapped rules

The following rules have been remapped to new rule codes:

-
[`blocking-http-call-in-async-function`](https://docs.astral.sh/ruff/rules/blocking-http-call-in-async-function/):
`ASYNC100` to `ASYNC210`
-
[`open-sleep-or-subprocess-in-async-function`](https://docs.astral.sh/ruff/rules/open-sleep-or-subprocess-in-async-function/):
`ASYNC101` split into `ASYNC220`, `ASYNC221`, `ASYNC230`, and `ASYNC251`
-
[`blocking-os-call-in-async-function`](https://docs.astral.sh/ruff/rules/blocking-os-call-in-async-function/):
`ASYNC102` has been merged into `ASYNC220` and `ASYNC221`
-
[`trio-timeout-without-await`](https://docs.astral.sh/ruff/rules/trio-timeout-without-await/):
`TRIO100` to `ASYNC100`
- [`trio-sync-call`](https://docs.astral.sh/ruff/rules/trio-sync-call/):
`TRIO105` to `ASYNC105`
-
[`trio-async-function-with-timeout`](https://docs.astral.sh/ruff/rules/trio-async-function-with-timeout/):
`TRIO109` to `ASYNC109`
-
[`trio-unneeded-sleep`](https://docs.astral.sh/ruff/rules/trio-unneeded-sleep/):
`TRIO110` to `ASYNC110`
-
[`trio-zero-sleep-call`](https://docs.astral.sh/ruff/rules/trio-zero-sleep-call/):
`TRIO115` to `ASYNC115`
-
[`repeated-isinstance-calls`](https://docs.astral.sh/ruff/rules/repeated-isinstance-calls/):
`PLR1701` to `SIM101`

##### Stabilization

The following rules have been stabilized and are no longer in preview:

-
[`mutable-fromkeys-value`](https://docs.astral.sh/ruff/rules/mutable-fromkeys-value/)
(`RUF024`)
-
[`default-factory-kwarg`](https://docs.astral.sh/ruff/rules/default-factory-kwarg/)
(`RUF026`)
- [`django-extra`](https://docs.astral.sh/ruff/rules/django-extra/)
(`S610`)
-
[`manual-dict-comprehension`](https://docs.astral.sh/ruff/rules/manual-dict-comprehension/)
(`PERF403`)
-
[`print-empty-string`](https://docs.astral.sh/ruff/rules/print-empty-string/)
(`FURB105`)
-
[`readlines-in-for`](https://docs.astral.sh/ruff/rules/readlines-in-for/)
(`FURB129`)
-
[`if-expr-min-max`](https://docs.astral.sh/ruff/rules/if-expr-min-max/)
(`FURB136`)
- [`bit-count`](https://docs.astral.sh/ruff/rules/bit-count/)
(`FURB161`)
-
[`redundant-log-base`](https://docs.astral.sh/ruff/rules/redundant-log-base/)
(`FURB163`)
-
[`regex-flag-alias`](https://docs.astral.sh/ruff/rules/regex-flag-alias/)
(`FURB167`)
-
[`isinstance-type-none`](https://docs.astral.sh/ruff/rules/isinstance-type-none/)
(`FURB168`)
-
[`type-none-comparison`](https://docs.astral.sh/ruff/rules/type-none-comparison/)
(`FURB169`)
- [`implicit-cwd`](https://docs.astral.sh/ruff/rules/implicit-cwd/)
(`FURB177`)
-
[`hashlib-digest-hex`](https://docs.astral.sh/ruff/rules/hashlib-digest-hex/)
(`FURB181`)
-
[`list-reverse-copy`](https://docs.astral.sh/ruff/rules/list-reverse-copy/)
(`FURB187`)
- [`bad-open-mode`](https://docs.astral.sh/ruff/rules/bad-open-mode/)
(`PLW1501`)
- [`empty-comment`](https://docs.astral.sh/ruff/rules/empty-comment/)
(`PLR2044`)
-
[`global-at-module-level`](https://docs.astral.sh/ruff/rules/global-at-module-level/)
(`PLW0604`)
-
[`misplaced-bare-raise`](https://docs.astral.sh/ruff/rules/misplaced-bare-raise%60/)
(`PLE0744`)
-
[`non-ascii-import-name`](https://docs.astral.sh/ruff/rules/non-ascii-import-name/)
(`PLC2403`)
- [`non-ascii-name`](https://docs.astral.sh/ruff/rules/non-ascii-name/)
(`PLC2401`)
-
[`nonlocal-and-global`](https://docs.astral.sh/ruff/rules/nonlocal-and-global/)
(`PLE0115`)
-
[`potential-index-error`](https://docs.astral.sh/ruff/rules/potential-index-error/)
(`PLE0643`)
-
[`redeclared-assigned-name`](https://docs.astral.sh/ruff/rules/redeclared-assigned-name/)
(`PLW0128`)
-
[`redefined-argument-from-local`](https://docs.astral.sh/ruff/rules/redefined-argument-from-local/)
(`PLR1704`)
-
[`repeated-keyword-argument`](https://docs.astral.sh/ruff/rules/repeated-keyword-argument/)
(`PLE1132`)
-
[`super-without-brackets`](https://docs.astral.sh/ruff/rules/super-without-brackets/)
(`PLW0245`)
-
[`unnecessary-list-index-lookup`](https://docs.astral.sh/ruff/rules/unnecessary-list-index-lookup/)
(`PLR1736`)
-
[`useless-exception-statement`](https://docs.astral.sh/ruff/rules/useless-exception-statement/)
(`PLW0133`)
-
[`useless-with-lock`](https://docs.astral.sh/ruff/rules/useless-with-lock/)
(`PLW2101`)

The following behaviors have been stabilized:

- [`is-literal`](https://docs.astral.sh/ruff/rules/is-literal/) (`F632`)
now warns for identity checks against list, set or dictionary literals
- [`needless-bool`](https://docs.astral.sh/ruff/rules/needless-bool/)
(`SIM103`) now detects `if` expressions with implicit `else` branches
-
[`module-import-not-at-top-of-file`](https://docs.astral.sh/ruff/rules/module-import-not-at-top-of-file/)
(`E402`) now allows `os.environ` modifications between import statements
-
[`type-comparison`](https://docs.astral.sh/ruff/rules/type-comparison/)
(`E721`) now allows idioms such as `type(x) is int`
- [`yoda-condition`](https://docs.astral.sh/ruff/rules/yoda-conditions/)
(`SIM300`) now flags a wider range of expressions

##### Removals

The following deprecated settings have been removed:

- `output-format=text`; use `output-format=concise` or
`output-format=full`
-   `tab-size`; use `indent-width`

The following deprecated CLI options have been removed:

-   `--show-source`; use `--output-format=full`
-   `--no-show-source`; use `--output-format=concise`

The following deprecated CLI commands have been removed:

-   `ruff <path>`; use `ruff check <path>`
-   `ruff --clean`; use `ruff clean`
- `ruff --generate-shell-completion`; use `ruff
generate-shell-completion`

##### Preview features

- \[`ruff`] Add `assert-with-print-message` rule
([#&#8203;11981](https://togithub.com/astral-sh/ruff/pull/11981))

##### CLI

- Use rule name rather than message in `--statistics`
([#&#8203;11697](https://togithub.com/astral-sh/ruff/pull/11697))
- Use the output format `full` by default
([#&#8203;12010](https://togithub.com/astral-sh/ruff/pull/12010))
- Don't log syntax errors to the console
([#&#8203;11902](https://togithub.com/astral-sh/ruff/pull/11902))

##### Rule changes

- \[`ruff`] Fix false positives if `gettext` is imported using an alias
(`RUF027`)
([#&#8203;12025](https://togithub.com/astral-sh/ruff/pull/12025))
- \[`npy`] Update `trapz` and `in1d` deprecation (`NPY201`)
([#&#8203;11948](https://togithub.com/astral-sh/ruff/pull/11948))
- \[`flake8-bandit`] Modify diagnostic ranges for shell-related rules
([#&#8203;10667](https://togithub.com/astral-sh/ruff/pull/10667))

##### Server

- Closing an untitled, unsaved notebook document no longer throws an
error ([#&#8203;11942](https://togithub.com/astral-sh/ruff/pull/11942))
- Support the usage of tildes and environment variables in `logFile`
([#&#8203;11945](https://togithub.com/astral-sh/ruff/pull/11945))
- Add option to configure whether to show syntax errors
([#&#8203;12059](https://togithub.com/astral-sh/ruff/pull/12059))

##### Bug fixes

- \[`pycodestyle`] Avoid `E203` for f-string debug expression
([#&#8203;12024](https://togithub.com/astral-sh/ruff/pull/12024))
- \[`pep8-naming`] Match import-name ignores against both name and alias
(`N812`, `N817`)
([#&#8203;12033](https://togithub.com/astral-sh/ruff/pull/12033))
- \[`pyflakes`] Detect assignments that shadow definitions (`F811`)
([#&#8203;11961](https://togithub.com/astral-sh/ruff/pull/11961))

##### Parser

- Emit a syntax error for an empty type parameter list
([#&#8203;12030](https://togithub.com/astral-sh/ruff/pull/12030))
- Avoid consuming the newline for unterminated strings
([#&#8203;12067](https://togithub.com/astral-sh/ruff/pull/12067))
- Do not include the newline in the unterminated string range
([#&#8203;12017](https://togithub.com/astral-sh/ruff/pull/12017))
- Use the correct range to highlight line continuation errors
([#&#8203;12016](https://togithub.com/astral-sh/ruff/pull/12016))
- Consider 2-character EOL before line continuations
([#&#8203;12035](https://togithub.com/astral-sh/ruff/pull/12035))
- Consider line continuation character for re-lexing
([#&#8203;12008](https://togithub.com/astral-sh/ruff/pull/12008))

##### Other changes

- Upgrade the Unicode table used for measuring the line-length
([#&#8203;11194](https://togithub.com/astral-sh/ruff/pull/11194))
- Remove the deprecation error message for the nursery selector
([#&#8203;10172](https://togithub.com/astral-sh/ruff/pull/10172))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
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/thegeeklab/ansible-doctor).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2024-07-01 03:14:45 +02:00 committed by GitHub
parent 434f79e9f2
commit 802085ae54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 20 deletions

39
poetry.lock generated
View File

@ -755,28 +755,29 @@ files = [
[[package]] [[package]]
name = "ruff" name = "ruff"
version = "0.4.10" version = "0.5.0"
description = "An extremely fast Python linter and code formatter, written in Rust." description = "An extremely fast Python linter and code formatter, written in Rust."
optional = false optional = false
python-versions = ">=3.7" python-versions = ">=3.7"
files = [ files = [
{file = "ruff-0.4.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:5c2c4d0859305ac5a16310eec40e4e9a9dec5dcdfbe92697acd99624e8638dac"}, {file = "ruff-0.5.0-py3-none-linux_armv6l.whl", hash = "sha256:ee770ea8ab38918f34e7560a597cc0a8c9a193aaa01bfbd879ef43cb06bd9c4c"},
{file = "ruff-0.4.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:a79489607d1495685cdd911a323a35871abfb7a95d4f98fc6f85e799227ac46e"}, {file = "ruff-0.5.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:38f3b8327b3cb43474559d435f5fa65dacf723351c159ed0dc567f7ab735d1b6"},
{file = "ruff-0.4.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b1dd1681dfa90a41b8376a61af05cc4dc5ff32c8f14f5fe20dba9ff5deb80cd6"}, {file = "ruff-0.5.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:7594f8df5404a5c5c8f64b8311169879f6cf42142da644c7e0ba3c3f14130370"},
{file = "ruff-0.4.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c75c53bb79d71310dc79fb69eb4902fba804a81f374bc86a9b117a8d077a1784"}, {file = "ruff-0.5.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:adc7012d6ec85032bc4e9065110df205752d64010bed5f958d25dbee9ce35de3"},
{file = "ruff-0.4.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:18238c80ee3d9100d3535d8eb15a59c4a0753b45cc55f8bf38f38d6a597b9739"}, {file = "ruff-0.5.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d505fb93b0fabef974b168d9b27c3960714d2ecda24b6ffa6a87ac432905ea38"},
{file = "ruff-0.4.10-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:d8f71885bce242da344989cae08e263de29752f094233f932d4f5cfb4ef36a81"}, {file = "ruff-0.5.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9dc5cfd3558f14513ed0d5b70ce531e28ea81a8a3b1b07f0f48421a3d9e7d80a"},
{file = "ruff-0.4.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:330421543bd3222cdfec481e8ff3460e8702ed1e58b494cf9d9e4bf90db52b9d"}, {file = "ruff-0.5.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:db3ca35265de239a1176d56a464b51557fce41095c37d6c406e658cf80bbb362"},
{file = "ruff-0.4.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9e9b6fb3a37b772628415b00c4fc892f97954275394ed611056a4b8a2631365e"}, {file = "ruff-0.5.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b1a321c4f68809fddd9b282fab6a8d8db796b270fff44722589a8b946925a2a8"},
{file = "ruff-0.4.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f54c481b39a762d48f64d97351048e842861c6662d63ec599f67d515cb417f6"}, {file = "ruff-0.5.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2c4dfcd8d34b143916994b3876b63d53f56724c03f8c1a33a253b7b1e6bf2a7d"},
{file = "ruff-0.4.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:67fe086b433b965c22de0b4259ddfe6fa541c95bf418499bedb9ad5fb8d1c631"}, {file = "ruff-0.5.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:81e5facfc9f4a674c6a78c64d38becfbd5e4f739c31fcd9ce44c849f1fad9e4c"},
{file = "ruff-0.4.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:acfaaab59543382085f9eb51f8e87bac26bf96b164839955f244d07125a982ef"}, {file = "ruff-0.5.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:e589e27971c2a3efff3fadafb16e5aef7ff93250f0134ec4b52052b673cf988d"},
{file = "ruff-0.4.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:3cea07079962b2941244191569cf3a05541477286f5cafea638cd3aa94b56815"}, {file = "ruff-0.5.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d2ffbc3715a52b037bcb0f6ff524a9367f642cdc5817944f6af5479bbb2eb50e"},
{file = "ruff-0.4.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:338a64ef0748f8c3a80d7f05785930f7965d71ca260904a9321d13be24b79695"}, {file = "ruff-0.5.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:cd096e23c6a4f9c819525a437fa0a99d1c67a1b6bb30948d46f33afbc53596cf"},
{file = "ruff-0.4.10-py3-none-win32.whl", hash = "sha256:ffe3cd2f89cb54561c62e5fa20e8f182c0a444934bf430515a4b422f1ab7b7ca"}, {file = "ruff-0.5.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:46e193b36f2255729ad34a49c9a997d506e58f08555366b2108783b3064a0e1e"},
{file = "ruff-0.4.10-py3-none-win_amd64.whl", hash = "sha256:67f67cef43c55ffc8cc59e8e0b97e9e60b4837c8f21e8ab5ffd5d66e196e25f7"}, {file = "ruff-0.5.0-py3-none-win32.whl", hash = "sha256:49141d267100f5ceff541b4e06552e98527870eafa1acc9dec9139c9ec5af64c"},
{file = "ruff-0.4.10-py3-none-win_arm64.whl", hash = "sha256:dd1fcee327c20addac7916ca4e2653fbbf2e8388d8a6477ce5b4e986b68ae6c0"}, {file = "ruff-0.5.0-py3-none-win_amd64.whl", hash = "sha256:e9118f60091047444c1b90952736ee7b1792910cab56e9b9a9ac20af94cd0440"},
{file = "ruff-0.4.10.tar.gz", hash = "sha256:3aa4f2bc388a30d346c56524f7cacca85945ba124945fe489952aadb6b5cd804"}, {file = "ruff-0.5.0-py3-none-win_arm64.whl", hash = "sha256:ed5c4df5c1fb4518abcb57725b576659542bdbe93366f4f329e8f398c4b71178"},
{file = "ruff-0.5.0.tar.gz", hash = "sha256:eb641b5873492cf9bd45bc9c5ae5320648218e04386a5f0c264ad6ccce8226a1"},
] ]
[[package]] [[package]]
@ -835,4 +836,4 @@ ansible-core = ["ansible-core"]
[metadata] [metadata]
lock-version = "2.0" lock-version = "2.0"
python-versions = "^3.9.0" python-versions = "^3.9.0"
content-hash = "356be66f08b44206fd1f9e26a2c74b462dbd1f824f4c56ae099da907e72b0e3e" content-hash = "fa550556e23eb0c3897d8be81217c9766fb8e45ca4eaf50e676b3c409086ae0a"

View File

@ -50,7 +50,7 @@ ansible-core = ["ansible-core"]
ansible-doctor = "ansibledoctor.cli:main" ansible-doctor = "ansibledoctor.cli:main"
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
ruff = "0.4.10" ruff = "0.5.0"
pytest = "8.2.2" pytest = "8.2.2"
pytest-mock = "3.14.0" pytest-mock = "3.14.0"
pytest-cov = "5.0.0" pytest-cov = "5.0.0"