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

Upgrade Rust to 1.71 #6323

Merged
merged 1 commit into from
Aug 4, 2023
Merged

Upgrade Rust to 1.71 #6323

merged 1 commit into from
Aug 4, 2023

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Aug 4, 2023

Addresses CVE-2023-38497

See also the version release post

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

Benchmark

Linux

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.08      9.8±0.09ms     4.1 MB/sec    1.00      9.1±0.09ms     4.5 MB/sec
formatter/numpy/ctypeslib.py               1.06  1937.0±20.80µs     8.6 MB/sec    1.00  1833.1±18.18µs     9.1 MB/sec
formatter/numpy/globals.py                 1.03    216.4±6.21µs    13.6 MB/sec    1.00    209.8±3.13µs    14.1 MB/sec
formatter/pydantic/types.py                1.07      4.1±0.05ms     6.2 MB/sec    1.00      3.9±0.04ms     6.6 MB/sec
linter/all-rules/large/dataset.py          1.03     12.9±0.11ms     3.2 MB/sec    1.00     12.6±0.08ms     3.2 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.04      3.3±0.03ms     5.0 MB/sec    1.00      3.2±0.02ms     5.2 MB/sec
linter/all-rules/numpy/globals.py          1.01    450.7±5.61µs     6.5 MB/sec    1.00    445.6±3.61µs     6.6 MB/sec
linter/all-rules/pydantic/types.py         1.03      5.9±0.05ms     4.3 MB/sec    1.00      5.7±0.05ms     4.5 MB/sec
linter/default-rules/large/dataset.py      1.10      6.7±0.06ms     6.0 MB/sec    1.00      6.1±0.05ms     6.7 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.07  1400.3±17.65µs    11.9 MB/sec    1.00  1313.4±11.86µs    12.7 MB/sec
linter/default-rules/numpy/globals.py      1.05    154.8±1.81µs    19.1 MB/sec    1.00    147.0±1.26µs    20.1 MB/sec
linter/default-rules/pydantic/types.py     1.08      3.0±0.04ms     8.6 MB/sec    1.00      2.7±0.03ms     9.3 MB/sec

Windows

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.03     11.2±0.44ms     3.6 MB/sec    1.00     10.8±0.35ms     3.8 MB/sec
formatter/numpy/ctypeslib.py               1.01      2.2±0.11ms     7.5 MB/sec    1.00      2.2±0.11ms     7.6 MB/sec
formatter/numpy/globals.py                 1.00   235.8±13.45µs    12.5 MB/sec    1.07   253.1±23.76µs    11.7 MB/sec
formatter/pydantic/types.py                1.02      4.8±0.20ms     5.4 MB/sec    1.00      4.6±0.20ms     5.5 MB/sec
linter/all-rules/large/dataset.py          1.00     15.3±0.42ms     2.7 MB/sec    1.00     15.2±0.40ms     2.7 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      4.0±0.13ms     4.1 MB/sec    1.00      4.1±0.14ms     4.1 MB/sec
linter/all-rules/numpy/globals.py          1.04   515.7±41.70µs     5.7 MB/sec    1.00   497.1±20.83µs     5.9 MB/sec
linter/all-rules/pydantic/types.py         1.00      7.1±0.22ms     3.6 MB/sec    1.00      7.1±0.28ms     3.6 MB/sec
linter/default-rules/large/dataset.py      1.09      8.4±0.27ms     4.8 MB/sec    1.00      7.7±0.21ms     5.3 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.05  1694.2±56.61µs     9.8 MB/sec    1.00  1614.5±62.53µs    10.3 MB/sec
linter/default-rules/numpy/globals.py      1.05   195.0±10.43µs    15.1 MB/sec    1.00    185.0±8.89µs    15.9 MB/sec
linter/default-rules/pydantic/types.py     1.05      3.7±0.14ms     7.0 MB/sec    1.00      3.5±0.11ms     7.3 MB/sec

@charliermarsh charliermarsh merged commit 9ae4985 into main Aug 4, 2023
@charliermarsh charliermarsh deleted the deps/rust branch August 4, 2023 01:08
@MichaReiser
Copy link
Member

I was afraid of upgrading Rust again because I remember that I broke the release workflow last time. @charliermarsh do you remember what broke back then?

@charliermarsh
Copy link
Member

charliermarsh commented Aug 4, 2023

I think the issue was in conda-forge. Sometimes the update to conda-forge’s Rust is slower than our upgrade and release cycle. I did consider that but assumed it was worth it to fix a CVE.

jankatins referenced this pull request in jankatins/pr-workflow-example Aug 9, 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://github.com/astral-sh/ruff),
[changelog](https://github.com/astral-sh/ruff/releases)) | `0.0.282`
-> `0.0.283` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.283?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.283?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.282/0.0.283?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.282/0.0.283?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.283)

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

#### What's Changed

##### Breaking Changes

- Assume Python 3.8 instead of 3.10 for target version by
[@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6397](https://github.com/astral-sh/ruff/pull/6397)

##### Rules

- \[`flake8-pyi`] `PYI019`: Detects if a type variable is used instead
of `Self` in return annotations by
[@&#8203;qdegraaf](https://github.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/6204](https://github.com/astral-sh/ruff/pull/6204)
- \[`flake8-pyi`] `PYI051`: Detects unions of `Literal` types by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6215](https://github.com/astral-sh/ruff/pull/6215)
- \[`flake8-pyi`] `PYI055`: Detects unions of `type`s by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6316](https://github.com/astral-sh/ruff/pull/6316)
- \[`pylint`] `E1300`: Detects invalid string format characters by
[@&#8203;silvanocerza](https://github.com/silvanocerza) in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- \[`pyupgrade`] `UP040`: Upgrades type alias annotations to use PEP-695
syntax by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6289](https://github.com/astral-sh/ruff/pull/6289)

##### Rule Changes

- \[`flake8-boolean-trap`] `FBT003`: Add `is_` and `is_not` to excluded
functions by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6307](https://github.com/astral-sh/ruff/pull/6307)
- \[`flake8-logging-format`] Allow capitalized names for logger
candidate heuristic match by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6356](https://github.com/astral-sh/ruff/pull/6356)
- \[`flake8-pyi`] Applicable rules are now checked non-stub code by
[@&#8203;andersk](https://github.com/andersk) in
[https://github.com/astral-sh/ruff/pull/6297](https://github.com/astral-sh/ruff/pull/6297)
- `PYI013`:
[`ellipsis-in-non-empty-class-body`](https://beta.ruff.rs/docs/rules/ellipsis-in-non-empty-class-body)
- `PYI016`:
[`duplicate-union-member`](https://beta.ruff.rs/docs/rules/duplicate-union-member)
- `PYI018`:
[`unused-private-type-var`](https://beta.ruff.rs/docs/rules/unused-private-type-var)
- `PYI019`:
[`custom-type-var-return-type`](https://beta.ruff.rs/docs/rules/custom-type-var-return-type)
- `PYI024`:
[`collections-named-tuple`](https://beta.ruff.rs/docs/rules/collections-named-tuple)
- `PYI025`:
[`unaliased-collections-abc-set-import`](https://beta.ruff.rs/docs/rules/unaliased-collections-abc-set-import)
- `PYI030`:
[`unnecessary-literal-union`](https://beta.ruff.rs/docs/rules/unnecessary-literal-union)
- `PYI032`:
[`any-eq-ne-annotation`](https://beta.ruff.rs/docs/rules/any-eq-ne-annotation)
- `PYI034`:
[`non-self-return-type`](https://beta.ruff.rs/docs/rules/non-self-return-type)
- `PYI036`:
[`bad-exit-annotation`](https://beta.ruff.rs/docs/rules/bad-exit-annotation)
- `PYI041`:
[`redundant-numeric-union`](https://beta.ruff.rs/docs/rules/redundant-numeric-union)
- `PYI042`:
[`snake-case-type-alias`](https://beta.ruff.rs/docs/rules/snake-case-type-alias)
- `PYI043`:
[`t-suffixed-type-alias`](https://beta.ruff.rs/docs/rules/t-suffixed-type-alias)
- `PYI045`:
[`iter-method-return-iterable`](https://beta.ruff.rs/docs/rules/iter-method-return-iterable)
- `PYI046`:
[`unused-private-protocol`](https://beta.ruff.rs/docs/rules/unused-private-protocol)
- `PYI047`:
[`unused-private-type-alias`](https://beta.ruff.rs/docs/rules/unused-private-type-alias)
- `PYI049`:
[`unused-private-typed-dict`](https://beta.ruff.rs/docs/rules/unused-private-typed-dict)
- `PYI050`:
[`no-return-argument-annotation-in-stub`](https://beta.ruff.rs/docs/rules/no-return-argument-annotation-in-stub)
(Python ≥ 3.11)
- `PYI051`:
[`redundant-literal-union`](https://beta.ruff.rs/docs/rules/redundant-literal-union)
- `PYI056`:
[`unsupported-method-call-on-all`](https://beta.ruff.rs/docs/rules/unsupported-method-call-on-all)
- \[`flake8-pyi`] `PYI027` is being replaced by `PYI022` / `UP035` by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6354](https://github.com/astral-sh/ruff/pull/6354)
- \[`pydocstyle`] `D103`: Don't require docstrings in `.pyi` files by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6239](https://github.com/astral-sh/ruff/pull/6239)
- \[`pydocstyle`] `D203`: Ignore same-line docstrings for lines-before
and lines-after rules by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6344](https://github.com/astral-sh/ruff/pull/6344)
- \[`pylint`] `PLE0605`: Allow generic tuple and list calls in `__all__`
by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6247](https://github.com/astral-sh/ruff/pull/6247)
- \[`pylint`] `PLR0124`: Add detection of comparisons with built-in
calls by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6324](https://github.com/astral-sh/ruff/pull/6324)
- \[`pyupgrade`] `UP032`: Add support for `await` expressions in
f-strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6304](https://github.com/astral-sh/ruff/pull/6304)
- \[`pyupgrade`] `UP032`: Add support for implicitly concatenated
strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6263](https://github.com/astral-sh/ruff/pull/6263)
- \[`pyupgrade`] `UP032`: Add support for repeated format fields by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6266](https://github.com/astral-sh/ruff/pull/6266)
- \[`ruff`] `RUF012`: Permit `ClassVar` and `Final` without subscript by
[@&#8203;bluetech](https://github.com/bluetech) in
[https://github.com/astral-sh/ruff/pull/6273](https://github.com/astral-sh/ruff/pull/6273)

##### Bug Fixes

- \[`flake8-bugbear`] `B006`: Respect `typing_extensions` imports of
`Annotated` by [@&#8203;PIG208](https://github.com/PIG208) in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)
- \[`flake8-pyi`] `PYI019`: Fix panic with positional-only arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6350](https://github.com/astral-sh/ruff/pull/6350)
- \[`flake8-use-pathlib`] Avoid raising `PTH206` with `maxsplit` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6283](https://github.com/astral-sh/ruff/pull/6283)
- \[`flake8`] `F841`: Update autofix to not remove Jupyer magic
expressions by [@&#8203;dhruvmanila](https://github.com/dhruvmanila)
in
[https://github.com/astral-sh/ruff/pull/6141](https://github.com/astral-sh/ruff/pull/6141)
- \[`pycodestyle`] `E721`: Include comparisons to builtin types by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6325](https://github.com/astral-sh/ruff/pull/6325)
- \[`pycodestyle`] `E721`: Match left-hand side `types()` call in
`types-comparison` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6326](https://github.com/astral-sh/ruff/pull/6326)
- \[`pyupgrade`] `UP031`: Avoid auto-fixing if there are comments within
the right-hand side by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6364](https://github.com/astral-sh/ruff/pull/6364)
- \[`pyupgrade`] `UP032`: Avoid auto-fixing if comments are present
around format call arguments by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6342](https://github.com/astral-sh/ruff/pull/6342)
- \[`pyupgrade`] `UP032`: Improve invalid expression check by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6308](https://github.com/astral-sh/ruff/pull/6308)
- Avoid attempting to fix `.format(...)` calls with too-few-arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6401](https://github.com/astral-sh/ruff/pull/6401)
- Fix bug where `.gitignore` files in parent directories were
incorrectly used by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6368](https://github.com/astral-sh/ruff/pull/6368)
- Fix duplicate violations raised on nested bitwise or `Union`
expressions by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6399](https://github.com/astral-sh/ruff/pull/6399)

##### Playground

- Add a simple tooltip to the sidebar by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6295](https://github.com/astral-sh/ruff/pull/6295)
- Add an icon for FIR by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6292](https://github.com/astral-sh/ruff/pull/6292)
- Increase icon opacity on-hover by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6291](https://github.com/astral-sh/ruff/pull/6291)
- Tweak background on theme button by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6290](https://github.com/astral-sh/ruff/pull/6290)

##### Other Changes

- Improve handling of violations around Jupyter magic expressions by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5552](https://github.com/astral-sh/ruff/pull/5552)
- Reduce memory usage by boxing type params and arguments fields on the
class definition node by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6275](https://github.com/astral-sh/ruff/pull/6275)
- Upgrade Rust to 1.71 by [@&#8203;zanieb](https://github.com/zanieb)
in
[https://github.com/astral-sh/ruff/pull/6323](https://github.com/astral-sh/ruff/pull/6323)

#### New Contributors

- [@&#8203;silvanocerza](https://github.com/silvanocerza) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- [@&#8203;PIG208](https://github.com/PIG208) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)

**Full Changelog**:
astral-sh/ruff@v0.0.282...v0.0.283

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **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/jankatins/pr-workflow-example).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4yNy4xIiwidXBkYXRlZEluVmVyIjoiMzYuMjcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
renovate bot referenced this pull request in ixm-one/pytest-cmake-presets Aug 10, 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://github.com/astral-sh/ruff),
[changelog](https://github.com/astral-sh/ruff/releases)) | `^0.0.281`
-> `^0.0.284` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.281/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.281/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.283...v0.0.284)

#### What's Changed

This release fixes a few bugs, notably the previous release announced a
breaking change where the default target
Python version changed from 3.10 to 3.8 but the change was not applied.
Thanks to [@&#8203;rco-ableton](https://github.com/rco-ableton) for
fixing this in

[https://github.com/astral-sh/ruff/pull/6444](https://github.com/astral-sh/ruff/pull/6444)

##### Bug Fixes

- Do not trigger `S108` if path is inside `tempfile.*` call by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/6416](https://github.com/astral-sh/ruff/pull/6416)
- Do not allow on zero tab width by
[@&#8203;tjkuson](https://github.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/6429](https://github.com/astral-sh/ruff/pull/6429)
- Fix false-positive in submodule resolution by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6435](https://github.com/astral-sh/ruff/pull/6435)

#### New Contributors

- [@&#8203;rco-ableton](https://github.com/rco-ableton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6444](https://github.com/astral-sh/ruff/pull/6444)

**Full Changelog**:
astral-sh/ruff@v0.0.283...v0.0.284

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.283)

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

#### What's Changed

##### Breaking Changes

- Assume Python 3.8 instead of 3.10 for target version by
[@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6397](https://github.com/astral-sh/ruff/pull/6397)

##### Rules

- \[`flake8-pyi`] `PYI019`: Detects if a type variable is used instead
of `Self` in return annotations by
[@&#8203;qdegraaf](https://github.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/6204](https://github.com/astral-sh/ruff/pull/6204)
- \[`flake8-pyi`] `PYI051`: Detects unions of `Literal` types by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6215](https://github.com/astral-sh/ruff/pull/6215)
- \[`flake8-pyi`] `PYI055`: Detects unions of `type`s by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6316](https://github.com/astral-sh/ruff/pull/6316)
- \[`pylint`] `E1300`: Detects invalid string format characters by
[@&#8203;silvanocerza](https://github.com/silvanocerza) in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- \[`pyupgrade`] `UP040`: Upgrades type alias annotations to use PEP-695
syntax by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6289](https://github.com/astral-sh/ruff/pull/6289)

##### Rule Changes

- \[`flake8-boolean-trap`] `FBT003`: Add `is_` and `is_not` to excluded
functions by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6307](https://github.com/astral-sh/ruff/pull/6307)
- \[`flake8-logging-format`] Allow capitalized names for logger
candidate heuristic match by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6356](https://github.com/astral-sh/ruff/pull/6356)
- \[`flake8-pyi`] Applicable rules are now checked non-stub code by
[@&#8203;andersk](https://github.com/andersk) in
[https://github.com/astral-sh/ruff/pull/6297](https://github.com/astral-sh/ruff/pull/6297)
- `PYI013`:
[`ellipsis-in-non-empty-class-body`](https://beta.ruff.rs/docs/rules/ellipsis-in-non-empty-class-body)
- `PYI016`:
[`duplicate-union-member`](https://beta.ruff.rs/docs/rules/duplicate-union-member)
- `PYI018`:
[`unused-private-type-var`](https://beta.ruff.rs/docs/rules/unused-private-type-var)
- `PYI019`:
[`custom-type-var-return-type`](https://beta.ruff.rs/docs/rules/custom-type-var-return-type)
- `PYI024`:
[`collections-named-tuple`](https://beta.ruff.rs/docs/rules/collections-named-tuple)
- `PYI025`:
[`unaliased-collections-abc-set-import`](https://beta.ruff.rs/docs/rules/unaliased-collections-abc-set-import)
- `PYI030`:
[`unnecessary-literal-union`](https://beta.ruff.rs/docs/rules/unnecessary-literal-union)
- `PYI032`:
[`any-eq-ne-annotation`](https://beta.ruff.rs/docs/rules/any-eq-ne-annotation)
- `PYI034`:
[`non-self-return-type`](https://beta.ruff.rs/docs/rules/non-self-return-type)
- `PYI036`:
[`bad-exit-annotation`](https://beta.ruff.rs/docs/rules/bad-exit-annotation)
- `PYI041`:
[`redundant-numeric-union`](https://beta.ruff.rs/docs/rules/redundant-numeric-union)
- `PYI042`:
[`snake-case-type-alias`](https://beta.ruff.rs/docs/rules/snake-case-type-alias)
- `PYI043`:
[`t-suffixed-type-alias`](https://beta.ruff.rs/docs/rules/t-suffixed-type-alias)
- `PYI045`:
[`iter-method-return-iterable`](https://beta.ruff.rs/docs/rules/iter-method-return-iterable)
- `PYI046`:
[`unused-private-protocol`](https://beta.ruff.rs/docs/rules/unused-private-protocol)
- `PYI047`:
[`unused-private-type-alias`](https://beta.ruff.rs/docs/rules/unused-private-type-alias)
- `PYI049`:
[`unused-private-typed-dict`](https://beta.ruff.rs/docs/rules/unused-private-typed-dict)
- `PYI050`:
[`no-return-argument-annotation-in-stub`](https://beta.ruff.rs/docs/rules/no-return-argument-annotation-in-stub)
(Python ≥ 3.11)
- `PYI051`:
[`redundant-literal-union`](https://beta.ruff.rs/docs/rules/redundant-literal-union)
- `PYI056`:
[`unsupported-method-call-on-all`](https://beta.ruff.rs/docs/rules/unsupported-method-call-on-all)
- \[`flake8-pyi`] `PYI027` is being replaced by `PYI022` / `UP035` by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6354](https://github.com/astral-sh/ruff/pull/6354)
- \[`pydocstyle`] `D103`: Don't require docstrings in `.pyi` files by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6239](https://github.com/astral-sh/ruff/pull/6239)
- \[`pydocstyle`] `D203`: Ignore same-line docstrings for lines-before
and lines-after rules by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6344](https://github.com/astral-sh/ruff/pull/6344)
- \[`pylint`] `PLE0605`: Allow generic tuple and list calls in `__all__`
by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6247](https://github.com/astral-sh/ruff/pull/6247)
- \[`pylint`] `PLR0124`: Add detection of comparisons with built-in
calls by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6324](https://github.com/astral-sh/ruff/pull/6324)
- \[`pyupgrade`] `UP032`: Add support for `await` expressions in
f-strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6304](https://github.com/astral-sh/ruff/pull/6304)
- \[`pyupgrade`] `UP032`: Add support for implicitly concatenated
strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6263](https://github.com/astral-sh/ruff/pull/6263)
- \[`pyupgrade`] `UP032`: Add support for repeated format fields by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6266](https://github.com/astral-sh/ruff/pull/6266)
- \[`ruff`] `RUF012`: Permit `ClassVar` and `Final` without subscript by
[@&#8203;bluetech](https://github.com/bluetech) in
[https://github.com/astral-sh/ruff/pull/6273](https://github.com/astral-sh/ruff/pull/6273)

##### Bug Fixes

- \[`flake8-bugbear`] `B006`: Respect `typing_extensions` imports of
`Annotated` by [@&#8203;PIG208](https://github.com/PIG208) in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)
- \[`flake8-pyi`] `PYI019`: Fix panic with positional-only arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6350](https://github.com/astral-sh/ruff/pull/6350)
- \[`flake8-use-pathlib`] Avoid raising `PTH206` with `maxsplit` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6283](https://github.com/astral-sh/ruff/pull/6283)
- \[`flake8`] `F841`: Update autofix to not remove Jupyer magic
expressions by [@&#8203;dhruvmanila](https://github.com/dhruvmanila)
in
[https://github.com/astral-sh/ruff/pull/6141](https://github.com/astral-sh/ruff/pull/6141)
- \[`pycodestyle`] `E721`: Include comparisons to builtin types by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6325](https://github.com/astral-sh/ruff/pull/6325)
- \[`pycodestyle`] `E721`: Match left-hand side `types()` call in
`types-comparison` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6326](https://github.com/astral-sh/ruff/pull/6326)
- \[`pyupgrade`] `UP031`: Avoid auto-fixing if there are comments within
the right-hand side by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6364](https://github.com/astral-sh/ruff/pull/6364)
- \[`pyupgrade`] `UP032`: Avoid auto-fixing if comments are present
around format call arguments by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6342](https://github.com/astral-sh/ruff/pull/6342)
- \[`pyupgrade`] `UP032`: Improve invalid expression check by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6308](https://github.com/astral-sh/ruff/pull/6308)
- Avoid attempting to fix `.format(...)` calls with too-few-arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6401](https://github.com/astral-sh/ruff/pull/6401)
- Fix bug where `.gitignore` files in parent directories were
incorrectly used by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6368](https://github.com/astral-sh/ruff/pull/6368)
- Fix duplicate violations raised on nested bitwise or `Union`
expressions by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6399](https://github.com/astral-sh/ruff/pull/6399)

##### Playground

- Add a simple tooltip to the sidebar by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6295](https://github.com/astral-sh/ruff/pull/6295)
- Add an icon for FIR by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6292](https://github.com/astral-sh/ruff/pull/6292)
- Increase icon opacity on-hover by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6291](https://github.com/astral-sh/ruff/pull/6291)
- Tweak background on theme button by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6290](https://github.com/astral-sh/ruff/pull/6290)

##### Other Changes

- Improve handling of violations around Jupyter magic expressions by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5552](https://github.com/astral-sh/ruff/pull/5552)
- Reduce memory usage by boxing type params and arguments fields on the
class definition node by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6275](https://github.com/astral-sh/ruff/pull/6275)
- Upgrade Rust to 1.71 by [@&#8203;zanieb](https://github.com/zanieb)
in
[https://github.com/astral-sh/ruff/pull/6323](https://github.com/astral-sh/ruff/pull/6323)

#### New Contributors

- [@&#8203;silvanocerza](https://github.com/silvanocerza) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- [@&#8203;PIG208](https://github.com/PIG208) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)

**Full Changelog**:
astral-sh/ruff@v0.0.282...v0.0.283

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.281...v0.0.282)

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

#### What's Changed

##### Bug Fixes

- Reset model state when exiting deferred visitors by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6208](https://github.com/astral-sh/ruff/pull/6208)
- Skip trivia when searching for named exception by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6218](https://github.com/astral-sh/ruff/pull/6218)
- Avoid PERF401 false positive on list access in loop by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6220](https://github.com/astral-sh/ruff/pull/6220)
- Avoid detecting continuations at non-start-of-line by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6219](https://github.com/astral-sh/ruff/pull/6219)
- Revert "Expand scope of `quoted-annotation` rule
([#&#8203;5766](https://github.com/astral-sh/ruff/issues/5766))" by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6237](https://github.com/astral-sh/ruff/pull/6237)

#### New Contributors

- [@&#8203;klistwan](https://github.com/klistwan) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6146](https://github.com/astral-sh/ruff/pull/6146)

**Full Changelog**:
astral-sh/ruff@v0.0.281...v0.0.282

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

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in allenporter/pyrainbird Aug 11, 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://github.com/astral-sh/ruff),
[changelog](https://github.com/astral-sh/ruff/releases)) | `==0.0.282`
-> `==0.0.284` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.282/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.282/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.283...v0.0.284)

#### What's Changed

This release fixes a few bugs, notably the previous release announced a
breaking change where the default target
Python version changed from 3.10 to 3.8 but the change was not applied.
Thanks to [@&#8203;rco-ableton](https://github.com/rco-ableton) for
fixing this in

[https://github.com/astral-sh/ruff/pull/6444](https://github.com/astral-sh/ruff/pull/6444)

##### Bug Fixes

- Do not trigger `S108` if path is inside `tempfile.*` call by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/6416](https://github.com/astral-sh/ruff/pull/6416)
- Do not allow on zero tab width by
[@&#8203;tjkuson](https://github.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/6429](https://github.com/astral-sh/ruff/pull/6429)
- Fix false-positive in submodule resolution by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6435](https://github.com/astral-sh/ruff/pull/6435)

#### New Contributors

- [@&#8203;rco-ableton](https://github.com/rco-ableton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6444](https://github.com/astral-sh/ruff/pull/6444)

**Full Changelog**:
astral-sh/ruff@v0.0.283...v0.0.284

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.283)

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

#### What's Changed

##### Breaking Changes

- Assume Python 3.8 instead of 3.10 for target version by
[@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6397](https://github.com/astral-sh/ruff/pull/6397)

##### Rules

- \[`flake8-pyi`] `PYI019`: Detects if a type variable is used instead
of `Self` in return annotations by
[@&#8203;qdegraaf](https://github.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/6204](https://github.com/astral-sh/ruff/pull/6204)
- \[`flake8-pyi`] `PYI051`: Detects unions of `Literal` types by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6215](https://github.com/astral-sh/ruff/pull/6215)
- \[`flake8-pyi`] `PYI055`: Detects unions of `type`s by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6316](https://github.com/astral-sh/ruff/pull/6316)
- \[`pylint`] `E1300`: Detects invalid string format characters by
[@&#8203;silvanocerza](https://github.com/silvanocerza) in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- \[`pyupgrade`] `UP040`: Upgrades type alias annotations to use PEP-695
syntax by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6289](https://github.com/astral-sh/ruff/pull/6289)

##### Rule Changes

- \[`flake8-boolean-trap`] `FBT003`: Add `is_` and `is_not` to excluded
functions by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6307](https://github.com/astral-sh/ruff/pull/6307)
- \[`flake8-logging-format`] Allow capitalized names for logger
candidate heuristic match by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6356](https://github.com/astral-sh/ruff/pull/6356)
- \[`flake8-pyi`] Applicable rules are now checked non-stub code by
[@&#8203;andersk](https://github.com/andersk) in
[https://github.com/astral-sh/ruff/pull/6297](https://github.com/astral-sh/ruff/pull/6297)
- `PYI013`:
[`ellipsis-in-non-empty-class-body`](https://beta.ruff.rs/docs/rules/ellipsis-in-non-empty-class-body)
- `PYI016`:
[`duplicate-union-member`](https://beta.ruff.rs/docs/rules/duplicate-union-member)
- `PYI018`:
[`unused-private-type-var`](https://beta.ruff.rs/docs/rules/unused-private-type-var)
- `PYI019`:
[`custom-type-var-return-type`](https://beta.ruff.rs/docs/rules/custom-type-var-return-type)
- `PYI024`:
[`collections-named-tuple`](https://beta.ruff.rs/docs/rules/collections-named-tuple)
- `PYI025`:
[`unaliased-collections-abc-set-import`](https://beta.ruff.rs/docs/rules/unaliased-collections-abc-set-import)
- `PYI030`:
[`unnecessary-literal-union`](https://beta.ruff.rs/docs/rules/unnecessary-literal-union)
- `PYI032`:
[`any-eq-ne-annotation`](https://beta.ruff.rs/docs/rules/any-eq-ne-annotation)
- `PYI034`:
[`non-self-return-type`](https://beta.ruff.rs/docs/rules/non-self-return-type)
- `PYI036`:
[`bad-exit-annotation`](https://beta.ruff.rs/docs/rules/bad-exit-annotation)
- `PYI041`:
[`redundant-numeric-union`](https://beta.ruff.rs/docs/rules/redundant-numeric-union)
- `PYI042`:
[`snake-case-type-alias`](https://beta.ruff.rs/docs/rules/snake-case-type-alias)
- `PYI043`:
[`t-suffixed-type-alias`](https://beta.ruff.rs/docs/rules/t-suffixed-type-alias)
- `PYI045`:
[`iter-method-return-iterable`](https://beta.ruff.rs/docs/rules/iter-method-return-iterable)
- `PYI046`:
[`unused-private-protocol`](https://beta.ruff.rs/docs/rules/unused-private-protocol)
- `PYI047`:
[`unused-private-type-alias`](https://beta.ruff.rs/docs/rules/unused-private-type-alias)
- `PYI049`:
[`unused-private-typed-dict`](https://beta.ruff.rs/docs/rules/unused-private-typed-dict)
- `PYI050`:
[`no-return-argument-annotation-in-stub`](https://beta.ruff.rs/docs/rules/no-return-argument-annotation-in-stub)
(Python ≥ 3.11)
- `PYI051`:
[`redundant-literal-union`](https://beta.ruff.rs/docs/rules/redundant-literal-union)
- `PYI056`:
[`unsupported-method-call-on-all`](https://beta.ruff.rs/docs/rules/unsupported-method-call-on-all)
- \[`flake8-pyi`] `PYI027` is being replaced by `PYI022` / `UP035` by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6354](https://github.com/astral-sh/ruff/pull/6354)
- \[`pydocstyle`] `D103`: Don't require docstrings in `.pyi` files by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6239](https://github.com/astral-sh/ruff/pull/6239)
- \[`pydocstyle`] `D203`: Ignore same-line docstrings for lines-before
and lines-after rules by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6344](https://github.com/astral-sh/ruff/pull/6344)
- \[`pylint`] `PLE0605`: Allow generic tuple and list calls in `__all__`
by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6247](https://github.com/astral-sh/ruff/pull/6247)
- \[`pylint`] `PLR0124`: Add detection of comparisons with built-in
calls by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6324](https://github.com/astral-sh/ruff/pull/6324)
- \[`pyupgrade`] `UP032`: Add support for `await` expressions in
f-strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6304](https://github.com/astral-sh/ruff/pull/6304)
- \[`pyupgrade`] `UP032`: Add support for implicitly concatenated
strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6263](https://github.com/astral-sh/ruff/pull/6263)
- \[`pyupgrade`] `UP032`: Add support for repeated format fields by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6266](https://github.com/astral-sh/ruff/pull/6266)
- \[`ruff`] `RUF012`: Permit `ClassVar` and `Final` without subscript by
[@&#8203;bluetech](https://github.com/bluetech) in
[https://github.com/astral-sh/ruff/pull/6273](https://github.com/astral-sh/ruff/pull/6273)

##### Bug Fixes

- \[`flake8-bugbear`] `B006`: Respect `typing_extensions` imports of
`Annotated` by [@&#8203;PIG208](https://github.com/PIG208) in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)
- \[`flake8-pyi`] `PYI019`: Fix panic with positional-only arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6350](https://github.com/astral-sh/ruff/pull/6350)
- \[`flake8-use-pathlib`] Avoid raising `PTH206` with `maxsplit` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6283](https://github.com/astral-sh/ruff/pull/6283)
- \[`flake8`] `F841`: Update autofix to not remove Jupyer magic
expressions by [@&#8203;dhruvmanila](https://github.com/dhruvmanila)
in
[https://github.com/astral-sh/ruff/pull/6141](https://github.com/astral-sh/ruff/pull/6141)
- \[`pycodestyle`] `E721`: Include comparisons to builtin types by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6325](https://github.com/astral-sh/ruff/pull/6325)
- \[`pycodestyle`] `E721`: Match left-hand side `types()` call in
`types-comparison` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6326](https://github.com/astral-sh/ruff/pull/6326)
- \[`pyupgrade`] `UP031`: Avoid auto-fixing if there are comments within
the right-hand side by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6364](https://github.com/astral-sh/ruff/pull/6364)
- \[`pyupgrade`] `UP032`: Avoid auto-fixing if comments are present
around format call arguments by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6342](https://github.com/astral-sh/ruff/pull/6342)
- \[`pyupgrade`] `UP032`: Improve invalid expression check by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6308](https://github.com/astral-sh/ruff/pull/6308)
- Avoid attempting to fix `.format(...)` calls with too-few-arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6401](https://github.com/astral-sh/ruff/pull/6401)
- Fix bug where `.gitignore` files in parent directories were
incorrectly used by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6368](https://github.com/astral-sh/ruff/pull/6368)
- Fix duplicate violations raised on nested bitwise or `Union`
expressions by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6399](https://github.com/astral-sh/ruff/pull/6399)

##### Playground

- Add a simple tooltip to the sidebar by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6295](https://github.com/astral-sh/ruff/pull/6295)
- Add an icon for FIR by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6292](https://github.com/astral-sh/ruff/pull/6292)
- Increase icon opacity on-hover by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6291](https://github.com/astral-sh/ruff/pull/6291)
- Tweak background on theme button by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6290](https://github.com/astral-sh/ruff/pull/6290)

##### Other Changes

- Improve handling of violations around Jupyter magic expressions by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5552](https://github.com/astral-sh/ruff/pull/5552)
- Reduce memory usage by boxing type params and arguments fields on the
class definition node by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6275](https://github.com/astral-sh/ruff/pull/6275)
- Upgrade Rust to 1.71 by [@&#8203;zanieb](https://github.com/zanieb)
in
[https://github.com/astral-sh/ruff/pull/6323](https://github.com/astral-sh/ruff/pull/6323)

#### New Contributors

- [@&#8203;silvanocerza](https://github.com/silvanocerza) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- [@&#8203;PIG208](https://github.com/PIG208) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)

**Full Changelog**:
astral-sh/ruff@v0.0.282...v0.0.283

</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/pyrainbird).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in allenporter/flux-local Aug 11, 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://github.com/astral-sh/ruff),
[changelog](https://github.com/astral-sh/ruff/releases)) | `==0.0.282`
-> `==0.0.284` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.282/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.282/0.0.284?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.283...v0.0.284)

#### What's Changed

This release fixes a few bugs, notably the previous release announced a
breaking change where the default target
Python version changed from 3.10 to 3.8 but the change was not applied.
Thanks to [@&#8203;rco-ableton](https://github.com/rco-ableton) for
fixing this in

[https://github.com/astral-sh/ruff/pull/6444](https://github.com/astral-sh/ruff/pull/6444)

##### Bug Fixes

- Do not trigger `S108` if path is inside `tempfile.*` call by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/6416](https://github.com/astral-sh/ruff/pull/6416)
- Do not allow on zero tab width by
[@&#8203;tjkuson](https://github.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/6429](https://github.com/astral-sh/ruff/pull/6429)
- Fix false-positive in submodule resolution by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6435](https://github.com/astral-sh/ruff/pull/6435)

#### New Contributors

- [@&#8203;rco-ableton](https://github.com/rco-ableton) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6444](https://github.com/astral-sh/ruff/pull/6444)

**Full Changelog**:
astral-sh/ruff@v0.0.283...v0.0.284

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.283)

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

#### What's Changed

##### Breaking Changes

- Assume Python 3.8 instead of 3.10 for target version by
[@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6397](https://github.com/astral-sh/ruff/pull/6397)

##### Rules

- \[`flake8-pyi`] `PYI019`: Detects if a type variable is used instead
of `Self` in return annotations by
[@&#8203;qdegraaf](https://github.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/6204](https://github.com/astral-sh/ruff/pull/6204)
- \[`flake8-pyi`] `PYI051`: Detects unions of `Literal` types by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6215](https://github.com/astral-sh/ruff/pull/6215)
- \[`flake8-pyi`] `PYI055`: Detects unions of `type`s by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6316](https://github.com/astral-sh/ruff/pull/6316)
- \[`pylint`] `E1300`: Detects invalid string format characters by
[@&#8203;silvanocerza](https://github.com/silvanocerza) in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- \[`pyupgrade`] `UP040`: Upgrades type alias annotations to use PEP-695
syntax by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6289](https://github.com/astral-sh/ruff/pull/6289)

##### Rule Changes

- \[`flake8-boolean-trap`] `FBT003`: Add `is_` and `is_not` to excluded
functions by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6307](https://github.com/astral-sh/ruff/pull/6307)
- \[`flake8-logging-format`] Allow capitalized names for logger
candidate heuristic match by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6356](https://github.com/astral-sh/ruff/pull/6356)
- \[`flake8-pyi`] Applicable rules are now checked non-stub code by
[@&#8203;andersk](https://github.com/andersk) in
[https://github.com/astral-sh/ruff/pull/6297](https://github.com/astral-sh/ruff/pull/6297)
- `PYI013`:
[`ellipsis-in-non-empty-class-body`](https://beta.ruff.rs/docs/rules/ellipsis-in-non-empty-class-body)
- `PYI016`:
[`duplicate-union-member`](https://beta.ruff.rs/docs/rules/duplicate-union-member)
- `PYI018`:
[`unused-private-type-var`](https://beta.ruff.rs/docs/rules/unused-private-type-var)
- `PYI019`:
[`custom-type-var-return-type`](https://beta.ruff.rs/docs/rules/custom-type-var-return-type)
- `PYI024`:
[`collections-named-tuple`](https://beta.ruff.rs/docs/rules/collections-named-tuple)
- `PYI025`:
[`unaliased-collections-abc-set-import`](https://beta.ruff.rs/docs/rules/unaliased-collections-abc-set-import)
- `PYI030`:
[`unnecessary-literal-union`](https://beta.ruff.rs/docs/rules/unnecessary-literal-union)
- `PYI032`:
[`any-eq-ne-annotation`](https://beta.ruff.rs/docs/rules/any-eq-ne-annotation)
- `PYI034`:
[`non-self-return-type`](https://beta.ruff.rs/docs/rules/non-self-return-type)
- `PYI036`:
[`bad-exit-annotation`](https://beta.ruff.rs/docs/rules/bad-exit-annotation)
- `PYI041`:
[`redundant-numeric-union`](https://beta.ruff.rs/docs/rules/redundant-numeric-union)
- `PYI042`:
[`snake-case-type-alias`](https://beta.ruff.rs/docs/rules/snake-case-type-alias)
- `PYI043`:
[`t-suffixed-type-alias`](https://beta.ruff.rs/docs/rules/t-suffixed-type-alias)
- `PYI045`:
[`iter-method-return-iterable`](https://beta.ruff.rs/docs/rules/iter-method-return-iterable)
- `PYI046`:
[`unused-private-protocol`](https://beta.ruff.rs/docs/rules/unused-private-protocol)
- `PYI047`:
[`unused-private-type-alias`](https://beta.ruff.rs/docs/rules/unused-private-type-alias)
- `PYI049`:
[`unused-private-typed-dict`](https://beta.ruff.rs/docs/rules/unused-private-typed-dict)
- `PYI050`:
[`no-return-argument-annotation-in-stub`](https://beta.ruff.rs/docs/rules/no-return-argument-annotation-in-stub)
(Python ≥ 3.11)
- `PYI051`:
[`redundant-literal-union`](https://beta.ruff.rs/docs/rules/redundant-literal-union)
- `PYI056`:
[`unsupported-method-call-on-all`](https://beta.ruff.rs/docs/rules/unsupported-method-call-on-all)
- \[`flake8-pyi`] `PYI027` is being replaced by `PYI022` / `UP035` by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6354](https://github.com/astral-sh/ruff/pull/6354)
- \[`pydocstyle`] `D103`: Don't require docstrings in `.pyi` files by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6239](https://github.com/astral-sh/ruff/pull/6239)
- \[`pydocstyle`] `D203`: Ignore same-line docstrings for lines-before
and lines-after rules by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6344](https://github.com/astral-sh/ruff/pull/6344)
- \[`pylint`] `PLE0605`: Allow generic tuple and list calls in `__all__`
by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6247](https://github.com/astral-sh/ruff/pull/6247)
- \[`pylint`] `PLR0124`: Add detection of comparisons with built-in
calls by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6324](https://github.com/astral-sh/ruff/pull/6324)
- \[`pyupgrade`] `UP032`: Add support for `await` expressions in
f-strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6304](https://github.com/astral-sh/ruff/pull/6304)
- \[`pyupgrade`] `UP032`: Add support for implicitly concatenated
strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6263](https://github.com/astral-sh/ruff/pull/6263)
- \[`pyupgrade`] `UP032`: Add support for repeated format fields by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6266](https://github.com/astral-sh/ruff/pull/6266)
- \[`ruff`] `RUF012`: Permit `ClassVar` and `Final` without subscript by
[@&#8203;bluetech](https://github.com/bluetech) in
[https://github.com/astral-sh/ruff/pull/6273](https://github.com/astral-sh/ruff/pull/6273)

##### Bug Fixes

- \[`flake8-bugbear`] `B006`: Respect `typing_extensions` imports of
`Annotated` by [@&#8203;PIG208](https://github.com/PIG208) in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)
- \[`flake8-pyi`] `PYI019`: Fix panic with positional-only arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6350](https://github.com/astral-sh/ruff/pull/6350)
- \[`flake8-use-pathlib`] Avoid raising `PTH206` with `maxsplit` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6283](https://github.com/astral-sh/ruff/pull/6283)
- \[`flake8`] `F841`: Update autofix to not remove Jupyer magic
expressions by [@&#8203;dhruvmanila](https://github.com/dhruvmanila)
in
[https://github.com/astral-sh/ruff/pull/6141](https://github.com/astral-sh/ruff/pull/6141)
- \[`pycodestyle`] `E721`: Include comparisons to builtin types by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6325](https://github.com/astral-sh/ruff/pull/6325)
- \[`pycodestyle`] `E721`: Match left-hand side `types()` call in
`types-comparison` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6326](https://github.com/astral-sh/ruff/pull/6326)
- \[`pyupgrade`] `UP031`: Avoid auto-fixing if there are comments within
the right-hand side by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6364](https://github.com/astral-sh/ruff/pull/6364)
- \[`pyupgrade`] `UP032`: Avoid auto-fixing if comments are present
around format call arguments by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6342](https://github.com/astral-sh/ruff/pull/6342)
- \[`pyupgrade`] `UP032`: Improve invalid expression check by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6308](https://github.com/astral-sh/ruff/pull/6308)
- Avoid attempting to fix `.format(...)` calls with too-few-arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6401](https://github.com/astral-sh/ruff/pull/6401)
- Fix bug where `.gitignore` files in parent directories were
incorrectly used by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6368](https://github.com/astral-sh/ruff/pull/6368)
- Fix duplicate violations raised on nested bitwise or `Union`
expressions by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6399](https://github.com/astral-sh/ruff/pull/6399)

##### Playground

- Add a simple tooltip to the sidebar by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6295](https://github.com/astral-sh/ruff/pull/6295)
- Add an icon for FIR by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6292](https://github.com/astral-sh/ruff/pull/6292)
- Increase icon opacity on-hover by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6291](https://github.com/astral-sh/ruff/pull/6291)
- Tweak background on theme button by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6290](https://github.com/astral-sh/ruff/pull/6290)

##### Other Changes

- Improve handling of violations around Jupyter magic expressions by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5552](https://github.com/astral-sh/ruff/pull/5552)
- Reduce memory usage by boxing type params and arguments fields on the
class definition node by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6275](https://github.com/astral-sh/ruff/pull/6275)
- Upgrade Rust to 1.71 by [@&#8203;zanieb](https://github.com/zanieb)
in
[https://github.com/astral-sh/ruff/pull/6323](https://github.com/astral-sh/ruff/pull/6323)

#### New Contributors

- [@&#8203;silvanocerza](https://github.com/silvanocerza) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- [@&#8203;PIG208](https://github.com/PIG208) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)

**Full Changelog**:
astral-sh/ruff@v0.0.282...v0.0.283

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
AlexWaygood referenced this pull request in AlexWaygood/typeshed-stats Aug 16, 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 |
|---|---|---|---|---|---|
| [docs/MarkDown](https://github.com/Python-Markdown/markdown)
([changelog](https://github.com/Python-Markdown/markdown/blob/master/docs/change_log/index.md))
| `==3.3.7` -> `==3.4.4` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/docs%2fMarkDown/3.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/docs%2fMarkDown/3.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/docs%2fMarkDown/3.3.7/3.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/docs%2fMarkDown/3.3.7/3.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [docs/mkdocs](https://github.com/mkdocs/mkdocs)
([changelog](https://www.mkdocs.org/about/release-notes/)) | `==1.4.3`
-> `==1.5.2` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/docs%2fmkdocs/1.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/docs%2fmkdocs/1.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/docs%2fmkdocs/1.4.3/1.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/docs%2fmkdocs/1.4.3/1.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[docs/mkdocs-macros-plugin](https://github.com/fralau/mkdocs_macros_plugin)
| `==1.0.2` -> `==1.0.4` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/docs%2fmkdocs-macros-plugin/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/docs%2fmkdocs-macros-plugin/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/docs%2fmkdocs-macros-plugin/1.0.2/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/docs%2fmkdocs-macros-plugin/1.0.2/1.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [docs/mkdocs-material](https://github.com/squidfunk/mkdocs-material)
| `==9.1.18` -> `==9.1.21` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/docs%2fmkdocs-material/9.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/docs%2fmkdocs-material/9.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/docs%2fmkdocs-material/9.1.18/9.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/docs%2fmkdocs-material/9.1.18/9.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [misc-lint/ruff](https://beta.ruff.rs/docs)
([source](https://github.com/astral-sh/ruff),
[changelog](https://github.com/astral-sh/ruff/releases)) | `==0.0.280`
-> `==0.0.283` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/misc-lint%2fruff/0.0.283?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/misc-lint%2fruff/0.0.283?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/misc-lint%2fruff/0.0.280/0.0.283?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/misc-lint%2fruff/0.0.280/0.0.283?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [typecheck/types-Markdown](https://github.com/python/typeshed)
([changelog](https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/Markdown.md))
| `==3.4.2.9` -> `==3.4.2.10` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/typecheck%2ftypes-Markdown/3.4.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/typecheck%2ftypes-Markdown/3.4.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/typecheck%2ftypes-Markdown/3.4.2.9/3.4.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/typecheck%2ftypes-Markdown/3.4.2.9/3.4.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>Python-Markdown/markdown (docs/MarkDown)</summary>

###
[`v3.4.4`](https://github.com/Python-Markdown/markdown/compare/3.4.3...3.4.4)

[Compare
Source](https://github.com/Python-Markdown/markdown/compare/3.4.3...3.4.4)

###
[`v3.4.3`](https://github.com/Python-Markdown/markdown/compare/3.4.2...3.4.3)

[Compare
Source](https://github.com/Python-Markdown/markdown/compare/3.4.2...3.4.3)

###
[`v3.4.2`](https://github.com/Python-Markdown/markdown/compare/3.4.1...3.4.2)

[Compare
Source](https://github.com/Python-Markdown/markdown/compare/3.4.1...3.4.2)

###
[`v3.4.1`](https://github.com/Python-Markdown/markdown/compare/3.4...3.4.1)

[Compare
Source](https://github.com/Python-Markdown/markdown/compare/3.4...3.4.1)

###
[`v3.4`](https://github.com/Python-Markdown/markdown/compare/3.3.7...3.4)

[Compare
Source](https://github.com/Python-Markdown/markdown/compare/3.3.7...3.4)

</details>

<details>
<summary>mkdocs/mkdocs (docs/mkdocs)</summary>

### [`v1.5.2`](https://github.com/mkdocs/mkdocs/releases/tag/1.5.2)

[Compare
Source](https://github.com/mkdocs/mkdocs/compare/1.5.1...1.5.2)

- Bugfix (regression in 1.5.0): Restore functionality of
`--no-livereload`.
([#&#8203;3320](https://github.com/mkdocs/mkdocs/issues/3320))

- Bugfix (regression in 1.5.0): The new page title detection would
sometimes be unable to drop anchorlinks - fix that.
([#&#8203;3325](https://github.com/mkdocs/mkdocs/issues/3325))

- Partly bring back pre-1.5 API: `extra_javascript` items will once
again be mostly strings, and only sometimes `ExtraStringValue` (when the
extra `script` functionality is used).

Plugins should be free to append strings to `config.extra_javascript`,
but when reading the values, they must still make sure to read it as
`str(value)` in case it is an `ExtraScriptValue` item. For querying the
attributes such as `.type` you need to check `isinstance` first. Static
type checking will guide you in that.
([#&#8203;3324](https://github.com/mkdocs/mkdocs/issues/3324))

See [commit
log](https://github.com/mkdocs/mkdocs/compare/1.5.1...1.5.2).

### [`v1.5.1`](https://github.com/mkdocs/mkdocs/releases/tag/1.5.1)

[Compare
Source](https://github.com/mkdocs/mkdocs/compare/1.5.0...1.5.1)

- Bugfix (regression in 1.5.0): Make it possible to treat
`ExtraScriptValue` as a path. This lets some plugins still work despite
the breaking change.

- Bugfix (regression in 1.5.0): Prevent errors for special setups that
have 3 conflicting files, such as `index.html`, `index.md` *and*
`README.md`
([#&#8203;3314](https://github.com/mkdocs/mkdocs/issues/3314))

See [commit
log](https://github.com/mkdocs/mkdocs/compare/1.5.0...1.5.1).

### [`v1.5.0`](https://github.com/mkdocs/mkdocs/releases/tag/1.5.0)

[Compare
Source](https://github.com/mkdocs/mkdocs/compare/1.4.3...1.5.0)

**New: MkDocs now accepts donations.** Please consider supporting the
current maintainer at my new GitHub sponsorship page.

MkDocs has been a totally free project since the beginning and wasn't
accepting funds. MkDocs will remain free of paywalls, but now you can
show your support with donations (one-time and/or recurring).

[**Donate for MkDocs - @&#8203;oprypin sponsors
page**](https://github.com/sponsors/oprypin)

And please also consider these other individuals who have been
contributing to the ecosystem for a long time and check out their
donations pages:

[@&#8203;facelessuser](https://github.com/sponsors/facelessuser)
[@&#8203;pawamoy](https://github.com/sponsors/pawamoy)
[@&#8203;Ultrabug](https://github.com/sponsors/Ultrabug)

***

##### Release 1.5.0

#### New command `mkdocs get-deps`

This command guesses the Python dependencies that a MkDocs site requires
in order to build. It simply prints the PyPI packages that need to be
installed. In the terminal it can be combined directly with an
installation command as follows:

```bash
pip install $(mkdocs get-deps)
```

The idea is that right after running this command, you can directly
follow it up with `mkdocs build` and it will almost always "just work",
without needing to think which dependencies to install.

The way it works is by scanning `mkdocs.yml` for `themes:`, `plugins:`,
`markdown_extensions:` items and doing a reverse lookup based on a large
list of known projects (catalog, see below).

Of course, you're welcome to use a "virtualenv" with such a command.
Also note that for environments that require stability (for example CI)
directly installing deps in this way is not a very reliable approach as
it precludes dependency pinning.

The command allows overriding which config file is used (instead of
`mkdocs.yml` in the current directory) as well as which catalog of
projects is used (instead of downloading it from the default location).
See [`mkdocs get-deps
--help`](https://www.mkdocs.org/user-guide/cli/#mkdocs-get-deps).

Context: [#&#8203;3205](https://github.com/mkdocs/mkdocs/issues/3205)

#### MkDocs has an official catalog of plugins

Check out <https://github.com/mkdocs/catalog> and add all your
general-purpose plugins, themes and extensions there, so that they can
be looked up through `mkdocs get-deps`.

This was renamed from "best-of-mkdocs" and received significant updates.
In addition to `pip` installation commands, the page now shows the
config boilerplate needed to add a plugin.

#### Expanded validation of links

##### Validated links in Markdown

> As you may know, within Markdown, MkDocs really only recognizes
**relative** links that lead to another physical `*.md` document (or
media file). This is a good convention to follow because then the source
pages are also freely browsable without MkDocs, for example on GitHub.
MkDocs knows that in the output it should turn those `*.md` links into
`*.html` as appropriate, and it would also always tell you if such a
link doesn't actually lead to an existing file.

However, the checks for links were really loose and had many
concessions. For example, links that started with `/` ("absolute") and
links that *ended* with `/` were left as is and no warning was shown,
which allowed such very fragile links to sneak into site sources: links
that happen to work right now but get no validation and links that
confusingly need an extra level of `..` with `use_directory_urls`
enabled.

Now, in addition to validating relative links, MkDocs will print `INFO`
messages for unrecognized types of links (including absolute links).
They look like this:

```text
INFO - Doc file 'example.md' contains an absolute link '/foo/bar/', it was left as is. Did you mean 'foo/bar.md'?
```

If you don't want any changes, not even the `INFO` messages, and wish to
revert to the silence from MkDocs 1.4, add the following configs to
`mkdocs.yml` (**not** recommended):

```yaml
validation:
  absolute_links: ignore
  unrecognized_links: ignore
```

If, on the opposite end, you want these to print `WARNING` messages and
cause `mkdocs build --strict` to fail, you are recommended to configure
these to `warn` instead.

See
[**documentation**](https://www.mkdocs.org/user-guide/configuration/#validation)
for actual recommended settings and more details. Context:
[#&#8203;3283](https://github.com/mkdocs/mkdocs/issues/3283)

##### Validated links in the nav

Links to documents in the [`nav`
configuration](https://www.mkdocs.org/user-guide/configuration/#nav) now
also have configurable validation, though with no changes to the
defaults.

You are welcomed to turn on validation for files that were forgotten and
excluded from the nav. Example:

```yaml
validation:
  nav:
    omitted_files: warn
    absolute_links: warn
```

This can make the following message appear with the `WARNING` level (as
opposed to `INFO` as the only option previously), thus being caught by
`mkdocs --strict`:

```text
INFO - The following pages exist in the docs directory, but are not included in the "nav" configuration: ...
```

See
[**documentation**](https://www.mkdocs.org/user-guide/configuration/#validation).
Context: [#&#8203;3283](https://github.com/mkdocs/mkdocs/issues/3283),
[#&#8203;1755](https://github.com/mkdocs/mkdocs/issues/1755)

##### Mark docs as intentionally "not in nav"

There is a new config `not_in_nav`. With it, you can mark particular
patterns of files as exempt from the above `omitted_files` warning type;
no messages will be printed for them anymore. (As a corollary, setting
this config to `*` is the same as ignoring `omitted_files` altogether.)

This is useful if you generally like these warnings about files that
were forgotten from the nav, but still have some pages that you
knowingly excluded from the nav and just want to build and copy them.

The `not_in_nav` config is a set of gitignore-like patterns. See the
next section for an explanation of another such config.

See
[**documentation**](https://www.mkdocs.org/user-guide/configuration/#not_in_nav).
Context: [#&#8203;3224](https://github.com/mkdocs/mkdocs/issues/3224),
[#&#8203;1888](https://github.com/mkdocs/mkdocs/issues/1888)

#### Excluded doc files

There is a new config `exclude_docs` that tells MkDocs to ignore certain
files under `docs_dir` and *not* copy them to the built `site` as part
of the build.

Historically MkDocs would always ignore file names starting with a dot,
and that's all. Now this is all configurable: you can un-ignore these
and/or ignore more patterns of files.

The `exclude_docs` config follows the [.gitignore pattern
format](https://git-scm.com/docs/gitignore#\_pattern_format) and is
specified as a multiline YAML string. For example:

```yaml
exclude_docs: |
  *.py               # Excludes e.g. docs/hooks/foo.py
  /drafts            # Excludes e.g. docs/drafts/hello.md
  /requirements.txt  # Excludes docs/requirements.txt
```

Validation of links (described above) is also affected by
`exclude_docs`. During `mkdocs serve` the messages explain the
interaction, whereas during `mkdocs build` excluded files are as good as
nonexistent.

As an additional related change, if you have a need to have both
`README.md` and `index.md` files in a directory but publish only one of
them, you can now use this feature to explicitly ignore one of them and
avoid warnings.

See
[**documentation**](https://www.mkdocs.org/user-guide/configuration/#exclude_docs).
Context: [#&#8203;3224](https://github.com/mkdocs/mkdocs/issues/3224)

##### Drafts

The `exclude_docs` config has another behavior: all excluded Markdown
pages will still be previewable in `mkdocs serve` only, just with a
"DRAFT" marker on top. Then they will of course be excluded from `mkdocs
build` or `gh-deploy`.

If you don't want `mkdocs serve` to have any special behaviors and
instead want it to perform completely normal builds, use the new flag
`mkdocs serve --clean`.

See
[**documentation**](https://www.mkdocs.org/user-guide/configuration/#exclude_docs).
Context: [#&#8203;3224](https://github.com/mkdocs/mkdocs/issues/3224)

#### `mkdocs serve` no longer exits after build errors

If there was an error (from the config or a plugin) during a site
re-build, `mkdocs serve` used to exit after printing a stack trace. Now
it will simply freeze the server until the author edits the files to fix
the problem, and then will keep reloading.

But errors on the *first* build still cause `mkdocs serve` to exit, as
before.

Context: [#&#8203;3255](https://github.com/mkdocs/mkdocs/issues/3255)

#### Page titles will be deduced from any style of heading

MkDocs always had the ability to infer the title of a page (if it's not
specified in the `nav`) based on the first line of the document, if it
had a `<h1>` heading that had to written starting with the exact
character `#`. Now any style of Markdown heading is understood
([#&#8203;1886](https://github.com/mkdocs/mkdocs/issues/1886)). Due to
the previous simplistic parsing, it was also impossible to use
`attr_list` attributes in that first heading
([#&#8203;3136](https://github.com/mkdocs/mkdocs/issues/3136)). Now
that is also fixed.

#### Markdown extensions can use paths relative to the current document

This is aimed at extensions such as `pymdownx.snippets` or
`markdown_include.include`: you can now specify their include paths to
be relative to the currently rendered Markdown document, or relative to
the `docs_dir`. Any other extension can of course also make use of the
new `!relative` YAML tag.

```yaml
markdown_extensions:
  - pymdownx.snippets:
      base_path: !relative
```

See
[**documentation**](https://www.mkdocs.org/user-guide/configuration/#paths-relative-to-the-current-file-or-site).
Context: [#&#8203;2154](https://github.com/mkdocs/mkdocs/issues/2154),
[#&#8203;3258](https://github.com/mkdocs/mkdocs/issues/3258)

#### `<script>` tags can specify `type="module"` and other attributes

In `extra_javascript`, if you use the `.mjs` file extension or
explicitly specify a `type: module` key, the script will be added with
the `type="module"` attribute. `defer: true` and `async: true` keys are
also available.

See [updated **documentation** for
`extra_javascript`](https://www.mkdocs.org/user-guide/configuration/#extra_javascript).

**At first this is only supported in built-in themes, other themes need
to follow up, see below.**

Context: [#&#8203;3237](https://github.com/mkdocs/mkdocs/issues/3237)

#### Changes for theme developers (action required!)

Using the construct `{% for script in extra_javascript %}` is now fully
obsolete because it cannot allow customizing the attributes of the
`<script>` tag. It will keep working but blocks some of MkDocs'
features.

Instead, you now need to use `config.extra_javascript` (which was
already the case for a while) and couple it with the new `script_tag`
filter:

```django
    {%- for script in config.extra_javascript %}
      {{ script | script_tag }}
    {%- endfor %}
```

See
[**documentation**](https://www.mkdocs.org/dev-guide/themes/#picking-up-css-and-javascript-from-the-config).

#### Upgrades for plugin developers

- Breaking change: `config.extra_javascript` is no longer a plain list
of strings, but instead a list of `ExtraScriptValue` items. So you can
no longer treat the list values as strings. If you want to keep
compatibility with old versions, just always reference the items as
`str(item)` instead. And you can still append plain strings to the list
if you wish. See information about `<script>` tags above. Context:
[#&#8203;3237](https://github.com/mkdocs/mkdocs/issues/3237)

- `File` has a new attribute `inclusion`. Its value is calculated from
both the `exclude_docs` and `not_in_nav` configs, and implements their
behavior. Plugins can read this value or write to it. New `File`
instances by default follow whatever the configs say, but plugins can
choose to make this decision explicitly, per file.

- When creating a `File`, one can now set a `dest_uri` directly, rather
than having to update it (and other dependent attributes) after
creation.
[Context](https://github.com/mkdocs/mkdocs/commit/d5af6426c52421f1113f6dcc591de1e01bea48bd)

- A new config option was added - `DictOfItems`. Similarly to
`ListOfItems`, it validates a mapping of config options that all have
the same type. Keys are arbitrary but always strings. Context:
[#&#8203;3242](https://github.com/mkdocs/mkdocs/issues/3242)

- A new function `get_plugin_logger` was added. In order to opt into a
standardized way for plugins to log messages, please use the idiom:

    ```python
    log = mkdocs.plugins.get_plugin_logger(__name__)
    ...
    log.info("Hello, world")
    ```

Context: [#&#8203;3245](https://github.com/mkdocs/mkdocs/issues/3245)

- `SubConfig` config option can be conveniently subclassed with a
particular type of config specified. For example, `class
ExtraScript(SubConfig[ExtraScriptValue]):`. To see how this is useful,
search for this class in code.
[Context](https://github.com/mkdocs/mkdocs/commit/73e503990e3e3504bfe1cb627d41a7e97970687e)

- Bugfix: `SubConfig` had a bug where paths (from `FilesystemObject`
options) were not made relative to the main config file as intended,
because `config_file_path` was not properly inherited to it. This is now
fixed. Context:
[#&#8203;3265](https://github.com/mkdocs/mkdocs/issues/3265)

- `Config` members now have a way to avoid clashing with Python's
reserved words. This is achieved by stripping a trailing underscore from
each member's name.

Example of adding an `async` boolean option that can be set by the user
as `async: true` and read programmatically as `config.async_`:

    ```python
    class ExampleConfig(Config):
        async_ = Type(bool, default=False)
    ```

Previously making a config key with a reserved name was impossible with
new-style schemas.
[Context](https://github.com/mkdocs/mkdocs/commit/1db8e884fa7135a49adf7740add5d875a16a18bc)

- `Theme` has its attributes properly declared and gained new attributes
`theme.locale`, `theme.custom_dir`.

-   Some type annotations were made more precise. For example:

- The `context` parameter has gained the type `TemplateContext`
(`TypedDict`).
[Context](https://github.com/mkdocs/mkdocs/commit/0f793b9984c7e6a1d53ce874e7d17b6d27ebf4b2)
- The classes `Page`, `Section`, `Link` now have a common base class
`StructureItem`.
[Context](https://github.com/mkdocs/mkdocs/commit/01be507e30b05db0a4c44ef05ba62b2098010653)
- Some methods stopped accepting `Config` and only accept `MkDocsConfig`
as was originally intended.
[Context](https://github.com/mkdocs/mkdocs/commit/c459cd24fc0320333f51525e9cf681d4a8370f50)
- `config.mdx_configs` got a proper type. Context:
[#&#8203;3229](https://github.com/mkdocs/mkdocs/issues/3229)

#### Theme updates

- Built-in themes mostly stopped relying on `<script defer>`. This may
affect some usages of `extra_javascript`, mainly remove the need for
custom handling of "has the page fully loaded yet". Context:
[#&#8203;3237](https://github.com/mkdocs/mkdocs/issues/3237)

- "mkdocs" theme now has a styling for `>` blockquotes, previously they
were not distinguished at all. Context:
[#&#8203;3291](https://github.com/mkdocs/mkdocs/issues/3291)

- "readthedocs" theme was updated to v1.2.0 according to upstream, with
improved styles for `<kbd>` and breadcrumb navigation. Context:
[#&#8203;3058](https://github.com/mkdocs/mkdocs/issues/3058)

- Both built-in themes had their version of highlight.js updated to
11.8.0, and jQuery updated to 3.6.0.

#### Bug fixes

##### Relative paths in the nav can traverse above the root

Regression in 1.2 - relative paths in the nav could no longer traverse
above the site's root and were truncated to the root. Although such
traversal is discouraged and produces a warning, this was a documented
behavior. The behavior is now restored.

Context: [#&#8203;2752](https://github.com/mkdocs/mkdocs/issues/2752),
[#&#8203;3010](https://github.com/mkdocs/mkdocs/issues/3010)

##### MkDocs can accept the config from stdin

This can be used for config overrides on the fly. See updated section at
the bottom of [Configuration
Inheritance](https://www.mkdocs.org/user-guide/configuration/#configuration-inheritance).

The command to use this is `mkdocs build -f -`. In previous versions
doing this led to an error.


[Context](https://github.com/mkdocs/mkdocs/commit/d5bb15fa108da86a8e53fb7d84109d8f8d9d6453)

#### New command line flags

- `mkdocs --no-color build` disables color output and line wrapping.
This option is also available through an environment variable
`NO_COLOR=true`. Context:
[#&#8203;3282](https://github.com/mkdocs/mkdocs/issues/3282)
- `mkdocs build --no-strict` overrides the `strict` config to `false`.
Context: [#&#8203;3254](https://github.com/mkdocs/mkdocs/issues/3254)
-   `mkdocs build -f -` (described directly above).
-   `mkdocs serve --clean` (described above).
- `mkdocs serve --dirty` is the new name of `mkdocs serve
--dirtyreload`.

#### Deprecations

- `extra_javascript` underwent a change that can break plugins in rare
cases, and it requires attention from theme developers. See respective
entries above.

- Python-Markdown was unpinned from `<3.4`. That version is known to
remove functionality. If you are affected by those removals, you can
still choose to pin the version for yourself: `Markdown <3.4`. Context:
[#&#8203;3222](https://github.com/mkdocs/mkdocs/issues/3222),
[#&#8203;2892](https://github.com/mkdocs/mkdocs/issues/2892)

- `mkdocs.utils.warning_filter` now shows a warning about being
deprecated. It does nothing since MkDocs 1.2. Consider
`get_plugin_logger` or just logging under `mkdocs.plugins.*` instead.
Context: [#&#8203;3008](https://github.com/mkdocs/mkdocs/issues/3008)

- Accessing the `_vars` attribute of a `Theme` is deprecated - just
access the keys directly.

- Accessing the `user_configs` attribute of a `Config` is deprecated.
Note: instead of `config.user_configs[*]['theme']['custom_dir']`, please
use the new attribute `config.theme.custom_dir`.

Other small improvements; see [commit
log](https://github.com/mkdocs/mkdocs/compare/1.4.3...1.5.0).

</details>

<details>
<summary>fralau/mkdocs_macros_plugin
(docs/mkdocs-macros-plugin)</summary>

###
[`v1.0.4`](https://github.com/fralau/mkdocs_macros_plugin/blob/HEAD/CHANGELOG.md#104-2023-08-07)

[Compare
Source](https://github.com/fralau/mkdocs_macros_plugin/compare/v1.0.2...v1.0.4)

-   Fixed: Warning due to filter issue with mkdocs >= 1.5
-   Fixed: Debug html tables (including for `macro_info()`) are
    now readable also in dark mode.

</details>

<details>
<summary>squidfunk/mkdocs-material (docs/mkdocs-material)</summary>

###
[`v9.1.21`](https://github.com/squidfunk/mkdocs-material/releases/tag/9.1.21):
mkdocs-material-9.1.21

[Compare
Source](https://github.com/squidfunk/mkdocs-material/compare/9.1.20...9.1.21)

-   Fixed MkDocs 1.4 compat issue in social plugin (9.1.20 regression)

###
[`v9.1.20`](https://github.com/squidfunk/mkdocs-material/releases/tag/9.1.20):
mkdocs-material-9.1.20

[Compare
Source](https://github.com/squidfunk/mkdocs-material/compare/9.1.19...9.1.20)

-   Updated Sanskrit translations
-   Fixed deprecation warnings for social plugin

###
[`v9.1.19`](https://github.com/squidfunk/mkdocs-material/releases/tag/9.1.19):
mkdocs-material-9.1.19

[Compare
Source](https://github.com/squidfunk/mkdocs-material/compare/9.1.18...9.1.19)

-   Added support for MkDocs 1.5+
- Fixed
[#&#8203;5699](https://github.com/squidfunk/mkdocs-material/issues/5699):
Improve error reporting in social plugin

</details>

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

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.283)

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

#### What's Changed

##### Breaking Changes

- Assume Python 3.8 instead of 3.10 for target version by
[@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6397](https://github.com/astral-sh/ruff/pull/6397)

##### Rules

- \[`flake8-pyi`] `PYI019`: Detects if a type variable is used instead
of `Self` in return annotations by
[@&#8203;qdegraaf](https://github.com/qdegraaf) in
[https://github.com/astral-sh/ruff/pull/6204](https://github.com/astral-sh/ruff/pull/6204)
- \[`flake8-pyi`] `PYI051`: Detects unions of `Literal` types by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6215](https://github.com/astral-sh/ruff/pull/6215)
- \[`flake8-pyi`] `PYI055`: Detects unions of `type`s by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6316](https://github.com/astral-sh/ruff/pull/6316)
- \[`pylint`] `E1300`: Detects invalid string format characters by
[@&#8203;silvanocerza](https://github.com/silvanocerza) in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- \[`pyupgrade`] `UP040`: Upgrades type alias annotations to use PEP-695
syntax by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6289](https://github.com/astral-sh/ruff/pull/6289)

##### Rule Changes

- \[`flake8-boolean-trap`] `FBT003`: Add `is_` and `is_not` to excluded
functions by [@&#8203;zanieb](https://github.com/zanieb) in
[https://github.com/astral-sh/ruff/pull/6307](https://github.com/astral-sh/ruff/pull/6307)
- \[`flake8-logging-format`] Allow capitalized names for logger
candidate heuristic match by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6356](https://github.com/astral-sh/ruff/pull/6356)
- \[`flake8-pyi`] Applicable rules are now checked non-stub code by
[@&#8203;andersk](https://github.com/andersk) in
[https://github.com/astral-sh/ruff/pull/6297](https://github.com/astral-sh/ruff/pull/6297)
- `PYI013`:
[`ellipsis-in-non-empty-class-body`](https://beta.ruff.rs/docs/rules/ellipsis-in-non-empty-class-body)
- `PYI016`:
[`duplicate-union-member`](https://beta.ruff.rs/docs/rules/duplicate-union-member)
- `PYI018`:
[`unused-private-type-var`](https://beta.ruff.rs/docs/rules/unused-private-type-var)
- `PYI019`:
[`custom-type-var-return-type`](https://beta.ruff.rs/docs/rules/custom-type-var-return-type)
- `PYI024`:
[`collections-named-tuple`](https://beta.ruff.rs/docs/rules/collections-named-tuple)
- `PYI025`:
[`unaliased-collections-abc-set-import`](https://beta.ruff.rs/docs/rules/unaliased-collections-abc-set-import)
- `PYI030`:
[`unnecessary-literal-union`](https://beta.ruff.rs/docs/rules/unnecessary-literal-union)
- `PYI032`:
[`any-eq-ne-annotation`](https://beta.ruff.rs/docs/rules/any-eq-ne-annotation)
- `PYI034`:
[`non-self-return-type`](https://beta.ruff.rs/docs/rules/non-self-return-type)
- `PYI036`:
[`bad-exit-annotation`](https://beta.ruff.rs/docs/rules/bad-exit-annotation)
- `PYI041`:
[`redundant-numeric-union`](https://beta.ruff.rs/docs/rules/redundant-numeric-union)
- `PYI042`:
[`snake-case-type-alias`](https://beta.ruff.rs/docs/rules/snake-case-type-alias)
- `PYI043`:
[`t-suffixed-type-alias`](https://beta.ruff.rs/docs/rules/t-suffixed-type-alias)
- `PYI045`:
[`iter-method-return-iterable`](https://beta.ruff.rs/docs/rules/iter-method-return-iterable)
- `PYI046`:
[`unused-private-protocol`](https://beta.ruff.rs/docs/rules/unused-private-protocol)
- `PYI047`:
[`unused-private-type-alias`](https://beta.ruff.rs/docs/rules/unused-private-type-alias)
- `PYI049`:
[`unused-private-typed-dict`](https://beta.ruff.rs/docs/rules/unused-private-typed-dict)
- `PYI050`:
[`no-return-argument-annotation-in-stub`](https://beta.ruff.rs/docs/rules/no-return-argument-annotation-in-stub)
(Python ≥ 3.11)
- `PYI051`:
[`redundant-literal-union`](https://beta.ruff.rs/docs/rules/redundant-literal-union)
- `PYI056`:
[`unsupported-method-call-on-all`](https://beta.ruff.rs/docs/rules/unsupported-method-call-on-all)
- \[`flake8-pyi`] `PYI027` is being replaced by `PYI022` / `UP035` by
[@&#8203;LaBatata101](https://github.com/LaBatata101) in
[https://github.com/astral-sh/ruff/pull/6354](https://github.com/astral-sh/ruff/pull/6354)
- \[`pydocstyle`] `D103`: Don't require docstrings in `.pyi` files by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6239](https://github.com/astral-sh/ruff/pull/6239)
- \[`pydocstyle`] `D203`: Ignore same-line docstrings for lines-before
and lines-after rules by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6344](https://github.com/astral-sh/ruff/pull/6344)
- \[`pylint`] `PLE0605`: Allow generic tuple and list calls in `__all__`
by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6247](https://github.com/astral-sh/ruff/pull/6247)
- \[`pylint`] `PLR0124`: Add detection of comparisons with built-in
calls by [@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6324](https://github.com/astral-sh/ruff/pull/6324)
- \[`pyupgrade`] `UP032`: Add support for `await` expressions in
f-strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6304](https://github.com/astral-sh/ruff/pull/6304)
- \[`pyupgrade`] `UP032`: Add support for implicitly concatenated
strings by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6263](https://github.com/astral-sh/ruff/pull/6263)
- \[`pyupgrade`] `UP032`: Add support for repeated format fields by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6266](https://github.com/astral-sh/ruff/pull/6266)
- \[`ruff`] `RUF012`: Permit `ClassVar` and `Final` without subscript by
[@&#8203;bluetech](https://github.com/bluetech) in
[https://github.com/astral-sh/ruff/pull/6273](https://github.com/astral-sh/ruff/pull/6273)

##### Bug Fixes

- \[`flake8-bugbear`] `B006`: Respect `typing_extensions` imports of
`Annotated` by [@&#8203;PIG208](https://github.com/PIG208) in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)
- \[`flake8-pyi`] `PYI019`: Fix panic with positional-only arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6350](https://github.com/astral-sh/ruff/pull/6350)
- \[`flake8-use-pathlib`] Avoid raising `PTH206` with `maxsplit` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6283](https://github.com/astral-sh/ruff/pull/6283)
- \[`flake8`] `F841`: Update autofix to not remove Jupyer magic
expressions by [@&#8203;dhruvmanila](https://github.com/dhruvmanila)
in
[https://github.com/astral-sh/ruff/pull/6141](https://github.com/astral-sh/ruff/pull/6141)
- \[`pycodestyle`] `E721`: Include comparisons to builtin types by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6325](https://github.com/astral-sh/ruff/pull/6325)
- \[`pycodestyle`] `E721`: Match left-hand side `types()` call in
`types-comparison` by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6326](https://github.com/astral-sh/ruff/pull/6326)
- \[`pyupgrade`] `UP031`: Avoid auto-fixing if there are comments within
the right-hand side by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6364](https://github.com/astral-sh/ruff/pull/6364)
- \[`pyupgrade`] `UP032`: Avoid auto-fixing if comments are present
around format call arguments by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6342](https://github.com/astral-sh/ruff/pull/6342)
- \[`pyupgrade`] `UP032`: Improve invalid expression check by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6308](https://github.com/astral-sh/ruff/pull/6308)
- Avoid attempting to fix `.format(...)` calls with too-few-arguments by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6401](https://github.com/astral-sh/ruff/pull/6401)
- Fix bug where `.gitignore` files in parent directories were
incorrectly used by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6368](https://github.com/astral-sh/ruff/pull/6368)
- Fix duplicate violations raised on nested bitwise or `Union`
expressions by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6399](https://github.com/astral-sh/ruff/pull/6399)

##### Playground

- Add a simple tooltip to the sidebar by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6295](https://github.com/astral-sh/ruff/pull/6295)
- Add an icon for FIR by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6292](https://github.com/astral-sh/ruff/pull/6292)
- Increase icon opacity on-hover by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6291](https://github.com/astral-sh/ruff/pull/6291)
- Tweak background on theme button by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6290](https://github.com/astral-sh/ruff/pull/6290)

##### Other Changes

- Improve handling of violations around Jupyter magic expressions by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/5552](https://github.com/astral-sh/ruff/pull/5552)
- Reduce memory usage by boxing type params and arguments fields on the
class definition node by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6275](https://github.com/astral-sh/ruff/pull/6275)
- Upgrade Rust to 1.71 by [@&#8203;zanieb](https://github.com/zanieb)
in
[https://github.com/astral-sh/ruff/pull/6323](https://github.com/astral-sh/ruff/pull/6323)

#### New Contributors

- [@&#8203;silvanocerza](https://github.com/silvanocerza) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/6171](https://github.com/astral-sh/ruff/pull/6171)
- [@&#8203;PIG208](https://github.com/PIG208) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6361](https://github.com/astral-sh/ruff/pull/6361)

**Full Changelog**:
https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.283

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

[Compare
Source](https://github.com/astral-sh/ruff/compare/v0.0.281...v0.0.282)

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

#### What's Changed

##### Bug Fixes

- Reset model state when exiting deferred visitors by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6208](https://github.com/astral-sh/ruff/pull/6208)
- Skip trivia when searching for named exception by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6218](https://github.com/astral-sh/ruff/pull/6218)
- Avoid PERF401 false positive on list access in loop by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6220](https://github.com/astral-sh/ruff/pull/6220)
- Avoid detecting continuations at non-start-of-line by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6219](https://github.com/astral-sh/ruff/pull/6219)
- Revert "Expand scope of `quoted-annotation` rule
([#&#8203;5766](https://github.com/astral-sh/ruff/issues/5766))" by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6237](https://github.com/astral-sh/ruff/pull/6237)

#### New Contributors

- [@&#8203;klistwan](https://github.com/klistwan) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6146](https://github.com/astral-sh/ruff/pull/6146)

**Full Changelog**:
https://github.com/astral-sh/ruff/compare/v0.0.281...v0.0.282

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

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

##### Rule changes

- \[`flake8-bugbear`] Extends `B002` to detect unary prefix decrement
operators by [@&#8203;tjkuson](https://github.com/tjkuson) in
[https://github.com/astral-sh/ruff/pull/5998](https://github.com/astral-sh/ruff/pull/5998)
- \[`flake8-pytest-style`] Avoid raising PT012 for simple `with`
statements by [@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6081](https://github.com/astral-sh/ruff/pull/6081)
- \[`flake8-pytest-style`] Allow pytest.raises body to contain a single
func or class definition by
[@&#8203;harupy](https://github.com/harupy) in
[https://github.com/astral-sh/ruff/pull/6083](https://github.com/astral-sh/ruff/pull/6083)
- \[`flake8-simplify`] Extend SIM118 with `not in` by
[@&#8203;sbrugman](https://github.com/sbrugman) in
[https://github.com/astral-sh/ruff/pull/5995](https://github.com/astral-sh/ruff/pull/5995)
- \[`perflint`] Skip `PERF203` violations for multi-statement loops by
[@&#8203;charliermarsh](https://github.com/charliermarsh) in
[https://github.com/astral-sh/ruff/pull/6145](https://github.com/astral-sh/ruff/pull/6145)
- \[`pyupgrade`] Add support for `int`, `float`, `bool` in `UP018` by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/6013](https://github.com/astral-sh/ruff/pull/6013)
- \[`tryceratops`] Add suggested fix for `TRY201` by
[@&#8203;dhruvmanila](https://github.com/dhruvmanila) in
[https://github.com/astral-sh/ruff/pull/6008](https://github.com/astral-sh/ruff/pull/6008)

##### Settings

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

##### Bug Fixes

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

#### New Contributors

- [@&#8203;AlexWaygood](https://github.com/AlexWaygood) made their
first contribution in
[https://github.com/astral-sh/ruff/pull/5973](https://github.com/astral-sh/ruff/pull/5973)
- [@&#8203;RMPR](https://github.com/RMPR) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6048](https://github.com/astral-sh/ruff/pull/6048)
- [@&#8203;arembridge](https://github.com/arembridge) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6079](https://github.com/astral-sh/ruff/pull/6079)
- [@&#8203;Eutropios](https://github.com/Eutropios) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/6082](https://github.com/astral-sh/ruff/pull/6082)
- [@&#8203;jelly](https://github.com/jelly) made their first
contribution in
[https://github.com/astral-sh/ruff/pull/5955](https://github.com/astral-sh/ruff/pull/5955)

**Full Changelog**:
https://github.com/astral-sh/ruff/compare/v0.0.280...v0.0.281

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every 3 months on the first day of
the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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/AlexWaygood/typeshed-stats).

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.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.

3 participants