Commit graph

10398 commits

Author SHA1 Message Date
Aarni Koskela
491a51960e
[ruff] Support slices in RUF005 (#17078)
Some checks are pending
CI / cargo fuzz build (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[Knot Playground] Release / publish (push) Waiting to run
## Summary

Teaches `RUF005` to also consider slices for concatenation. Other
indexing (`foo[0] + [7, 8, 9] + bar[1]`) is explicitly not considered.

```diff
 foo = [4, 5, 6]
-bar = [1, 2, 3] + foo
-slicing1 = foo[:1] + [7, 8, 9]
-slicing2 = [7, 8, 9] + bar[1:]
-slicing3 = foo[:1] + [7, 8, 9] + bar[1:]
+bar = [1, 2, 3, *foo]
+slicing1 = [*foo[:1], 7, 8, 9]
+slicing2 = [7, 8, 9, *bar[1:]]
+slicing3 = [*foo[:1], 7, 8, 9, *bar[1:]]
```

## Test Plan

Manually tested (diff above from `ruff check --diff`), snapshot updated.
2025-03-31 09:09:39 -04:00
David Peter
2d7f118f52
[red-knot] Binary operator inference: generalize code for non-instances (#17081)
## Summary

Generalize the rich-comparison fallback code for binary operator
inference. This gets rid of one `todo_type!(…)` and implements the last
remaining failing case from
https://github.com/astral-sh/ruff/issues/14200.

closes https://github.com/astral-sh/ruff/issues/14200

## Test Plan

New Markdown tests.
2025-03-31 13:01:25 +02:00
David Peter
3d1e5676fb
[red-knot] Add ParamSpecArgs and ParamSpecKwargs as KnownClass (#17086)
## Summary

In preparation for #17017, where we will need them to suppress new false
positives (once we understand the `ParamSpec.args`/`ParamSpec.kwargs`
properties).

## Test Plan

Tested on branch #17017
2025-03-31 10:52:23 +00:00
Wei Lee
0b1ab8fd5a
[airflow] Combine AIR302 matches (#17080)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

* Combine AIR302 matches
* Found a few errors. Will be fixed in another PR

## Test Plan

<!-- How was it tested? -->

This PR does not change anything. The existing testing fixture should
work as it used to be
2025-03-31 12:17:18 +02:00
David Peter
d9616e61b0
[red-knot] Disallow todo_type! without custom message (#17083)
## Summary

Disallow empty `todo_type!()`s without a custom message. They can lead
to spurious diffs in `mypy_primer` where the only thing that's changed
is the file/line information.
2025-03-31 10:49:19 +02:00
Wei Lee
fa80e10aac
[airflow] fix typos in AIR302 implementation and test cases (#17082)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

* The following paths are wrong 
* `airflow.providers.amazon.auth_manager.avp.entities` should be
`airflow.providers.amazon.aws.auth_manager.avp.entities`
* `["airflow", "datasets", "manager", "dataset_manager"]` should be
fixed as `airflow.assets.manager` but not
`airflow.assets.manager.asset_manager`
* `["airflow", "datasets.manager", "DatasetManager"]` should be `
["airflow", "datasets", "manager", "DatasetManager"]` instead

## Test Plan

<!-- How was it tested? -->

the test fixture is updated accordingly
2025-03-31 10:42:04 +02:00
Wei Lee
30a5f69913
[airflow] fix missing or wrong test cases (AIR302) (#16968)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->
Improve AIR302 test cases

## Test Plan

<!-- How was it tested? -->
test fixtures have been updated accordingly
2025-03-31 10:22:45 +02:00
renovate[bot]
a192d96880
Update pre-commit dependencies (#17073)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[abravalheri/validate-pyproject](https://redirect.github.com/abravalheri/validate-pyproject)
| repository | patch | `v0.24` -> `v0.24.1` |
|
[astral-sh/ruff-pre-commit](https://redirect.github.com/astral-sh/ruff-pre-commit)
| repository | patch | `v0.11.0` -> `v0.11.2` |
| [crate-ci/typos](https://redirect.github.com/crate-ci/typos) |
repository | minor | `v1.30.2` -> `v1.31.0` |
|
[python-jsonschema/check-jsonschema](https://redirect.github.com/python-jsonschema/check-jsonschema)
| repository | minor | `0.31.3` -> `0.32.1` |
|
[woodruffw/zizmor-pre-commit](https://redirect.github.com/woodruffw/zizmor-pre-commit)
| repository | patch | `v1.5.1` -> `v1.5.2` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://redirect.github.com/renovatebot/renovate/discussions/new)
if you have any questions.

---

### Release Notes

<details>
<summary>abravalheri/validate-pyproject
(abravalheri/validate-pyproject)</summary>

###
[`v0.24.1`](https://redirect.github.com/abravalheri/validate-pyproject/releases/tag/v0.24.1)

[Compare
Source](https://redirect.github.com/abravalheri/validate-pyproject/compare/v0.24...v0.24.1)

#### What's Changed

- Fixed multi plugin id was read from the wrong place by
[@&#8203;henryiii](https://redirect.github.com/henryiii) in
[https://github.com/abravalheri/validate-pyproject/pull/240](https://redirect.github.com/abravalheri/validate-pyproject/pull/240)
- Implemented alternative plugin sorting,
[https://github.com/abravalheri/validate-pyproject/pull/243](https://redirect.github.com/abravalheri/validate-pyproject/pull/243)

**Full Changelog**:
https://github.com/abravalheri/validate-pyproject/compare/v0.24...v0.24.1

</details>

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

###
[`v0.11.2`](https://redirect.github.com/astral-sh/ruff-pre-commit/releases/tag/v0.11.2)

[Compare
Source](https://redirect.github.com/astral-sh/ruff-pre-commit/compare/v0.11.1...v0.11.2)

See: https://github.com/astral-sh/ruff/releases/tag/0.11.2

###
[`v0.11.1`](https://redirect.github.com/astral-sh/ruff-pre-commit/releases/tag/v0.11.1)

[Compare
Source](https://redirect.github.com/astral-sh/ruff-pre-commit/compare/v0.11.0...v0.11.1)

See: https://github.com/astral-sh/ruff/releases/tag/0.11.1

</details>

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.31.0`](https://redirect.github.com/crate-ci/typos/releases/tag/v1.31.0)

[Compare
Source](https://redirect.github.com/crate-ci/typos/compare/v1.30.3...v1.31.0)

#### \[1.31.0] - 2025-03-28

##### Features

- Updated the dictionary with the [March
2025](https://redirect.github.com/crate-ci/typos/issues/1266) changes

###
[`v1.30.3`](https://redirect.github.com/crate-ci/typos/releases/tag/v1.30.3)

[Compare
Source](https://redirect.github.com/crate-ci/typos/compare/v1.30.2...v1.30.3)

#### \[1.30.3] - 2025-03-24

##### Features

-   Support detecting `go.work` and `go.work.sum` files

</details>

<details>
<summary>python-jsonschema/check-jsonschema
(python-jsonschema/check-jsonschema)</summary>

###
[`v0.32.1`](https://redirect.github.com/python-jsonschema/check-jsonschema/blob/HEAD/CHANGELOG.rst#0321)

[Compare
Source](https://redirect.github.com/python-jsonschema/check-jsonschema/compare/0.32.0...0.32.1)

-   Fix the `check-meltano` hook to use `types_or`. Thanks
    :user:`edgarrmondragon`! (:pr:`543`)

###
[`v0.32.0`](https://redirect.github.com/python-jsonschema/check-jsonschema/blob/HEAD/CHANGELOG.rst#0320)

[Compare
Source](https://redirect.github.com/python-jsonschema/check-jsonschema/compare/0.31.3...0.32.0)

- Update vendored schemas: circle-ci, compose-spec, dependabot,
github-workflows,
    gitlab-ci, mergify, renovate, taskfile (2025-03-25)
- Add Meltano schema and pre-commit hook. Thanks
:user:`edgarrmondragon`! (:issue:`540`)
- Add Snapcraft schema and pre-commit hook. Thanks :user:`fabolhak`!
(:issue:`535`)

</details>

<details>
<summary>woodruffw/zizmor-pre-commit
(woodruffw/zizmor-pre-commit)</summary>

###
[`v1.5.2`](https://redirect.github.com/woodruffw/zizmor-pre-commit/releases/tag/v1.5.2)

[Compare
Source](https://redirect.github.com/woodruffw/zizmor-pre-commit/compare/v1.5.1...v1.5.2)

See: https://github.com/woodruffw/zizmor/releases/tag/v1.5.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-03-31 07:42:15 +00:00
Mike Perlov
5c1fab0661
Fix member lookup for unions & intersections ignoring policy (#17066)
## Summary

A quick fix for how union/intersection member search ins performed in
Knot.

## Test Plan

* Added a dunder method call test for Union, which exhibits the error
* Also added an intersection error, but it is not triggering currently
due to `call` logic not being fully implemented for intersections.

---------

Co-authored-by: David Peter <mail@david-peter.de>
2025-03-31 09:40:47 +02:00
renovate[bot]
5f83a32553
Update Rust crate clap to v4.5.34 (#17070)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [clap](https://redirect.github.com/clap-rs/clap) |
workspace.dependencies | patch | `4.5.32` -> `4.5.34` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>clap-rs/clap (clap)</summary>

###
[`v4.5.34`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4534---2025-03-27)

[Compare
Source](https://redirect.github.com/clap-rs/clap/compare/v4.5.33...v4.5.34)

##### Fixes

- *(help)* Don't add extra blank lines with `flatten_help(true)` and
subcommands without arguments

###
[`v4.5.33`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4533---2025-03-26)

[Compare
Source](https://redirect.github.com/clap-rs/clap/compare/v4.5.32...v4.5.33)

##### Fixes

- *(error)* When showing the usage of a suggestion for an unknown
argument, don't show the group

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:25:20 +02:00
renovate[bot]
6d387e01b4
Update Rust crate log to v0.4.27 (#17071)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [log](https://redirect.github.com/rust-lang/log) |
workspace.dependencies | patch | `0.4.26` -> `0.4.27` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>rust-lang/log (log)</summary>

###
[`v0.4.27`](https://redirect.github.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0427---2025-03-24)

[Compare
Source](https://redirect.github.com/rust-lang/log/compare/0.4.26...0.4.27)

##### What's Changed

- A few minor lint fixes by
[@&#8203;nyurik](https://redirect.github.com/nyurik) in
[https://github.com/rust-lang/log/pull/671](https://redirect.github.com/rust-lang/log/pull/671)
- Enable clippy support for format-like macros by
[@&#8203;nyurik](https://redirect.github.com/nyurik) in
[https://github.com/rust-lang/log/pull/665](https://redirect.github.com/rust-lang/log/pull/665)
- Add an optional logger param by
[@&#8203;tisonkun](https://redirect.github.com/tisonkun) in
[https://github.com/rust-lang/log/pull/664](https://redirect.github.com/rust-lang/log/pull/664)
- Pass global logger by value, supplied logger by ref by
[@&#8203;KodrAus](https://redirect.github.com/KodrAus) in
[https://github.com/rust-lang/log/pull/673](https://redirect.github.com/rust-lang/log/pull/673)

**Full Changelog**:
https://github.com/rust-lang/log/compare/0.4.26...0.4.27

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:25:04 +02:00
renovate[bot]
ef2616446a
Update actions/github-script action to v7.0.1 (#17072)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[actions/github-script](https://redirect.github.com/actions/github-script)
| action | patch | `v7` -> `v7.0.1` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>actions/github-script (actions/github-script)</summary>

###
[`v7.0.1`](https://redirect.github.com/actions/github-script/releases/tag/v7.0.1)

[Compare
Source](https://redirect.github.com/actions/github-script/compare/v7...v7.0.1)

#### What's Changed

- Avoid setting `baseUrl` to undefined when input is not provided by
[@&#8203;joshmgross](https://redirect.github.com/joshmgross) in
[https://github.com/actions/github-script/pull/439](https://redirect.github.com/actions/github-script/pull/439)

**Full Changelog**:
https://github.com/actions/github-script/compare/v7.0.0...v7.0.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:24:38 +02:00
renovate[bot]
90153e5664
Update PyO3/maturin-action action to v1.47.3 (#17076)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [PyO3/maturin-action](https://redirect.github.com/PyO3/maturin-action)
| action | minor | `v1` -> `v1.47.3` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>PyO3/maturin-action (PyO3/maturin-action)</summary>

###
[`v1.47.3`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.47.3)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.47.2...v1.47.3)

##### What's Changed

-   Install ziglang < 0.14.0

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.47.2...v1.47.3

###
[`v1.47.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.47.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.47.1...v1.47.2)

##### What's Changed

- Fix i686 libatomic install for rustup by
[@&#8203;exFalso](https://redirect.github.com/exFalso) in
[https://github.com/PyO3/maturin-action/pull/330](https://redirect.github.com/PyO3/maturin-action/pull/330)

##### New Contributors

- [@&#8203;exFalso](https://redirect.github.com/exFalso) made their
first contribution in
[https://github.com/PyO3/maturin-action/pull/330](https://redirect.github.com/PyO3/maturin-action/pull/330)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.47.1...v1.47.2

###
[`v1.47.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.47.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.47.0...v1.47.1)

##### What's Changed

- Install libatomic for cargo on i686 Linux targets by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/327](https://redirect.github.com/PyO3/maturin-action/pull/327)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.47.0...v1.47.1

###
[`v1.47.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.47.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.46.0...v1.47.0)

##### What's Changed

- Add GITHUB\_ to ALLOWED_ENV_PREFIXES by
[@&#8203;mnaser](https://redirect.github.com/mnaser) in
[https://github.com/PyO3/maturin-action/pull/323](https://redirect.github.com/PyO3/maturin-action/pull/323)
- fix: upgrade the toolchain by
[@&#8203;kemingy](https://redirect.github.com/kemingy) in
[https://github.com/PyO3/maturin-action/pull/325](https://redirect.github.com/PyO3/maturin-action/pull/325)

##### New Contributors

- [@&#8203;mnaser](https://redirect.github.com/mnaser) made their first
contribution in
[https://github.com/PyO3/maturin-action/pull/323](https://redirect.github.com/PyO3/maturin-action/pull/323)
- [@&#8203;kemingy](https://redirect.github.com/kemingy) made their
first contribution in
[https://github.com/PyO3/maturin-action/pull/325](https://redirect.github.com/PyO3/maturin-action/pull/325)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.46.0...v1.47.0

###
[`v1.46.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.46.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.45.0...v1.46.0)

##### What's Changed

- Add support for arm64 Linux runner by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/316](https://redirect.github.com/PyO3/maturin-action/pull/316)

##### New Contributors

- [@&#8203;dhruvmanila](https://redirect.github.com/dhruvmanila) made
their first contribution in
[https://github.com/PyO3/maturin-action/pull/304](https://redirect.github.com/PyO3/maturin-action/pull/304)
- [@&#8203;cclauss](https://redirect.github.com/cclauss) made their
first contribution in
[https://github.com/PyO3/maturin-action/pull/310](https://redirect.github.com/PyO3/maturin-action/pull/310)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.45.0...v1.46.0

###
[`v1.45.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.45.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.44.0...v1.45.0)

##### What's Changed

- Revert "Ignore cffi installation error" by
[@&#8203;mkniewallner](https://redirect.github.com/mkniewallner) in
[https://github.com/PyO3/maturin-action/pull/285](https://redirect.github.com/PyO3/maturin-action/pull/285)
- Upgrade TOML parser by
[@&#8203;gaborbernat](https://redirect.github.com/gaborbernat) in
[https://github.com/PyO3/maturin-action/pull/295](https://redirect.github.com/PyO3/maturin-action/pull/295)
- Use `pip install --user` by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/296](https://redirect.github.com/PyO3/maturin-action/pull/296)

##### New Contributors

- [@&#8203;mkniewallner](https://redirect.github.com/mkniewallner) made
their first contribution in
[https://github.com/PyO3/maturin-action/pull/285](https://redirect.github.com/PyO3/maturin-action/pull/285)
- [@&#8203;gaborbernat](https://redirect.github.com/gaborbernat) made
their first contribution in
[https://github.com/PyO3/maturin-action/pull/295](https://redirect.github.com/PyO3/maturin-action/pull/295)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.44.0...v1.45.0

###
[`v1.44.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.44.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.43.0...v1.44.0)

##### What's Changed

- Update versions-manifest.json by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/PyO3/maturin-action/pull/269](https://redirect.github.com/PyO3/maturin-action/pull/269)
- Bump braces from 3.0.2 to 3.0.3 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/PyO3/maturin-action/pull/271](https://redirect.github.com/PyO3/maturin-action/pull/271)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.43.0...v1.44.0

###
[`v1.43.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.43.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.42.2...v1.43.0)

##### What's Changed

- Move before script before sccache setup by
[@&#8203;orf](https://redirect.github.com/orf) in
[https://github.com/PyO3/maturin-action/pull/264](https://redirect.github.com/PyO3/maturin-action/pull/264)
- Find PyPy in tool cache by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/268](https://redirect.github.com/PyO3/maturin-action/pull/268)
- Adds support for docker-in-docker cross platform builds by
[@&#8203;plied](https://redirect.github.com/plied) in
[https://github.com/PyO3/maturin-action/pull/266](https://redirect.github.com/PyO3/maturin-action/pull/266)

##### New Contributors

- [@&#8203;orf](https://redirect.github.com/orf) made their first
contribution in
[https://github.com/PyO3/maturin-action/pull/264](https://redirect.github.com/PyO3/maturin-action/pull/264)
- [@&#8203;plied](https://redirect.github.com/plied) made their first
contribution in
[https://github.com/PyO3/maturin-action/pull/266](https://redirect.github.com/PyO3/maturin-action/pull/266)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.42.2...v1.43.0

###
[`v1.42.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.42.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.42.1...v1.42.2)

##### What's Changed

- Remove `CARGO_HOME` from docker env var by
[@&#8203;dariocurr](https://redirect.github.com/dariocurr) in
[https://github.com/PyO3/maturin-action/pull/262](https://redirect.github.com/PyO3/maturin-action/pull/262)

##### New Contributors

- [@&#8203;dariocurr](https://redirect.github.com/dariocurr) made their
first contribution in
[https://github.com/PyO3/maturin-action/pull/262](https://redirect.github.com/PyO3/maturin-action/pull/262)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.42.1...v1.42.2

###
[`v1.42.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.42.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.42.0...v1.42.1)

##### What's Changed

- Update versions-manifest.json by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/PyO3/maturin-action/pull/252](https://redirect.github.com/PyO3/maturin-action/pull/252)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.42.0...v1.42.1

###
[`v1.42.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.42.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.41.0...v1.42.0)

##### What's Changed

- Add support for `--target=` by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/248](https://redirect.github.com/PyO3/maturin-action/pull/248)
- Add arm-unknown-linux-musleabihf target support by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/250](https://redirect.github.com/PyO3/maturin-action/pull/250)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.41.0...v1.42.0

###
[`v1.41.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.41.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.8...v1.41.0)

##### What's Changed

-   Upgrade to Node 20
- Bump actions/setup-python from 4 to 5 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/PyO3/maturin-action/pull/239](https://redirect.github.com/PyO3/maturin-action/pull/239)
- Bump peter-evans/create-pull-request from 5 to 6 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/PyO3/maturin-action/pull/243](https://redirect.github.com/PyO3/maturin-action/pull/243)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.40.8...v1.41.0

###
[`v1.40.8`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.40.8)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.7...v1.40.8)

##### What's Changed

- Pass `CC` and `CXX` environmental variables by
[@&#8203;ijl](https://redirect.github.com/ijl) in
[https://github.com/PyO3/maturin-action/pull/232](https://redirect.github.com/PyO3/maturin-action/pull/232)

##### New Contributors

- [@&#8203;ijl](https://redirect.github.com/ijl) made their first
contribution in
[https://github.com/PyO3/maturin-action/pull/232](https://redirect.github.com/PyO3/maturin-action/pull/232)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.40.7...v1.40.8

###
[`v1.40.7`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.40.7)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.6...v1.40.7)

##### What's Changed

- Allow absolute `working-directory` by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/223](https://redirect.github.com/PyO3/maturin-action/pull/223)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.40.6...v1.40.7

###
[`v1.40.6`](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.5...v1.40.6)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.5...v1.40.6)

###
[`v1.40.5`](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.4...v1.40.5)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.4...v1.40.5)

###
[`v1.40.4`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.40.4)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.3...v1.40.4)

##### What's Changed

- Also find `rust-toolchain` file in parent directories by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/217](https://redirect.github.com/PyO3/maturin-action/pull/217)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.40.3...v1.40.4

###
[`v1.40.3`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.40.3)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.2...v1.40.3)

##### What's Changed

- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/PyO3/maturin-action/pull/211](https://redirect.github.com/PyO3/maturin-action/pull/211)
- Correctly compute `pyproject.toml` path by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/213](https://redirect.github.com/PyO3/maturin-action/pull/213)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.40.2...v1.40.3

###
[`v1.40.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.40.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.1...v1.40.2)

##### What's Changed

- Resolve workspace target dir from `cargo metadata` output by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/200](https://redirect.github.com/PyO3/maturin-action/pull/200)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.40.1...v1.40.2

###
[`v1.40.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.40.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.40.0...v1.40.1)

##### What's Changed

- Bump peter-evans/create-pull-request from 4 to 5 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/PyO3/maturin-action/pull/174](https://redirect.github.com/PyO3/maturin-action/pull/174)
- Write `run-maturin-action.sh` to a tmpdir by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/194](https://redirect.github.com/PyO3/maturin-action/pull/194)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.40.0...v1.40.1

###
[`v1.40.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.40.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.39.0...v1.40.0)

##### What's Changed

- Automatically pass `CFLAGS`/`CPPFLAGS`/`CXXFLAGS`/`LDFLAGS` by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/172](https://redirect.github.com/PyO3/maturin-action/pull/172)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.39.0...v1.40.0

###
[`v1.39.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.39.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.38.1...v1.39.0)

##### What's Changed

- Add `before-script-linux` option by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/157](https://redirect.github.com/PyO3/maturin-action/pull/157)

For running custom script to configure the build environment on Linux,
for example installing clang for `rust-bindgen`.
For macOS and Windows you can just run the command before
`maturin-action` since the builds are always run on the host machine.

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.38.1...v1.39.0

###
[`v1.38.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.38.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.38.0...v1.38.1)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.38.0...v1.38.1

###
[`v1.38.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.38.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.37.2...v1.38.0)

##### What's Changed

- Add sccache support by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/156](https://redirect.github.com/PyO3/maturin-action/pull/156)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.37.2...v1.38.0

###
[`v1.37.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.37.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.37.1...v1.37.2)

##### What's Changed

- Add support for multiline `rustup-components` option by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/154](https://redirect.github.com/PyO3/maturin-action/pull/154)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.37.1...v1.37.2

###
[`v1.37.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.37.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.37.0...v1.37.1)

##### What's Changed

- Install `cffi` by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/150](https://redirect.github.com/PyO3/maturin-action/pull/150)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.37.0...v1.37.1

###
[`v1.37.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.37.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.36.0...v1.37.0)

##### What's Changed

- Add support for `universal2-apple-darwin` target by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/149](https://redirect.github.com/PyO3/maturin-action/pull/149)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.36.0...v1.37.0

###
[`v1.36.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.36.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.35.2...v1.36.0)

##### What's Changed

- Don't pass `--zig` to unsupported targets by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/143](https://redirect.github.com/PyO3/maturin-action/pull/143)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.35.2...v1.36.0

###
[`v1.35.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.35.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.35.1...v1.35.2)

##### What's Changed

- Use unshift instead of push to allow passing rustc args by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/140](https://redirect.github.com/PyO3/maturin-action/pull/140)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.35.1...v1.35.2

###
[`v1.35.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.35.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.35.0...v1.35.1)

##### What's Changed

- Fix docker image for manylinux\_2\_28 by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/138](https://redirect.github.com/PyO3/maturin-action/pull/138)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.35.0...v1.35.1

###
[`v1.35.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.35.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.34.0...v1.35.0)

##### What's Changed

- Bump json5 from 1.0.1 to 1.0.2 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/PyO3/maturin-action/pull/133](https://redirect.github.com/PyO3/maturin-action/pull/133)
- Add `docker-options` for passing additional `docker run` options by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/135](https://redirect.github.com/PyO3/maturin-action/pull/135)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.34.0...v1.35.0

###
[`v1.34.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.34.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.33.0...v1.34.0)

##### What's Changed

- Forward SSH agent to Docker container by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/119](https://redirect.github.com/PyO3/maturin-action/pull/119)
- Add support for `de-vri-es/setup-git-credentials` action by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/120](https://redirect.github.com/PyO3/maturin-action/pull/120)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.33.0...v1.34.0

###
[`v1.33.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.33.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.32.2...v1.33.0)

##### What's Changed

- Fallback to local host build when no default docker image found by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/118](https://redirect.github.com/PyO3/maturin-action/pull/118)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.32.2...v1.33.0

###
[`v1.32.2`](https://redirect.github.com/PyO3/maturin-action/compare/v1.32.1...v1.32.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.32.1...v1.32.2)

###
[`v1.32.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.32.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.32.0...v1.32.1)

##### What's Changed

- Remove hardcoded `MACOSX_DEPLOYMENT_TARGET` by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/113](https://redirect.github.com/PyO3/maturin-action/pull/113)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.32.0...v1.32.1

###
[`v1.32.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.32.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.31.0...v1.32.0)

##### What's Changed

- Update links after moving to PyO3 org by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/97](https://redirect.github.com/PyO3/maturin-action/pull/97)
- Add `working-directory` input option by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/PyO3/maturin-action/pull/102](https://redirect.github.com/PyO3/maturin-action/pull/102)

**Full Changelog**:
https://github.com/PyO3/maturin-action/compare/v1.31.0...v1.32.0

###
[`v1.31.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.31.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.30.2...v1.31.0)

##### What's Changed

- Test Python 3.11 by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/92](https://redirect.github.com/messense/maturin-action/pull/92)
- Always use docker on Linux if `container` is set by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/95](https://redirect.github.com/messense/maturin-action/pull/95)
-   Update GitHub Actions Nodejs runtime to 16

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.30.2...v1.31.0

###
[`v1.30.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.30.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.30.1...v1.30.2)

##### What's Changed

- Switch to ghcr.io manylinux cross docker images by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/90](https://redirect.github.com/messense/maturin-action/pull/90)
- chore: update dependencies by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/91](https://redirect.github.com/messense/maturin-action/pull/91)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.30.1...v1.30.2

###
[`v1.30.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.30.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.30.0...v1.30.1)

##### What's Changed

- Remove now obsolete `autoManylinuxVersion` function by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/84](https://redirect.github.com/messense/maturin-action/pull/84)
- Add support for using manylinux version in `container` option by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/85](https://redirect.github.com/messense/maturin-action/pull/85)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.30.0...v1.30.1

###
[`v1.30.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.30.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.29.3...v1.30.0)

##### What's Changed

- Make `manylinux: auto` defaults to `manylinux2014` by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/83](https://redirect.github.com/messense/maturin-action/pull/83)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.29.3...v1.30.0

###
[`v1.29.3`](https://redirect.github.com/PyO3/maturin-action/compare/v1.29.2...v1.29.3)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.29.2...v1.29.3)

###
[`v1.29.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.29.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.29.1...v1.29.2)

##### What's Changed

-   docker: pass `CMAKE_*` and `TARGET_*` env vars

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.29.1...v1.29.2

###
[`v1.29.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.29.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.29.0...v1.29.1)

##### What's Changed

-   Use `GITHUB_TOKEN` env var if available

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.29.0...v1.29.1

###
[`v1.29.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.29.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.28.4...v1.29.0)

##### What's Changed

- Defaults to manylinux2014 when using `auto` with Rust beta/nightly by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/65](https://redirect.github.com/messense/maturin-action/pull/65)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.28.4...v1.29.0

###
[`v1.28.4`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.28.4)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.28.3...v1.28.4)

##### What's Changed

- Update versions-manifest.json by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/messense/maturin-action/pull/59](https://redirect.github.com/messense/maturin-action/pull/59)
- Update versions-manifest.json by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/messense/maturin-action/pull/60](https://redirect.github.com/messense/maturin-action/pull/60)
- Update versions-manifest.json by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/messense/maturin-action/pull/61](https://redirect.github.com/messense/maturin-action/pull/61)
- Exclude manylinux2010 test on Rust nightly by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/62](https://redirect.github.com/messense/maturin-action/pull/62)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.28.3...v1.28.4

###
[`v1.28.3`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.28.3)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.28.2...v1.28.3)

##### What's Changed

-   Fix file permissions for output directory when building with Docker.

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.28.2...v1.28.3

###
[`v1.28.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.28.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.28.1...v1.28.2)

##### What's Changed

- Update versions-manifest.json by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/messense/maturin-action/pull/52](https://redirect.github.com/messense/maturin-action/pull/52)
- Update versions-manifest.json by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/messense/maturin-action/pull/54](https://redirect.github.com/messense/maturin-action/pull/54)

##### New Contributors

- [@&#8203;github-actions](https://redirect.github.com/github-actions)
made their first contribution in
[https://github.com/messense/maturin-action/pull/52](https://redirect.github.com/messense/maturin-action/pull/52)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.28.1...v1.28.2

###
[`v1.28.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.28.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.28.0...v1.28.1)

##### What's Changed

- Support legacy `rust-toolchain` with toml content by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/51](https://redirect.github.com/messense/maturin-action/pull/51)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.28.0...v1.28.1

###
[`v1.28.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.28.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.27.0...v1.28.0)

##### What's Changed

- Update dependencies by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/45](https://redirect.github.com/messense/maturin-action/pull/45)
- Read maturin version from `pyproject.toml` by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/46](https://redirect.github.com/messense/maturin-action/pull/46)
- Add support for rust-toolchain overrides by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/48](https://redirect.github.com/messense/maturin-action/pull/48)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.27.0...v1.28.0

###
[`v1.27.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.27.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.26.0...v1.27.0)

##### What's Changed

- Accept more env vars in docker build by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/42](https://redirect.github.com/messense/maturin-action/pull/42)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.26.0...v1.27.0

###
[`v1.26.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.26.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.25.0...v1.26.0)

##### What's Changed

- Set default images for musllinux\_1\_1 by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/41](https://redirect.github.com/messense/maturin-action/pull/41)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.25.0...v1.26.0

###
[`v1.25.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.25.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.24.1...v1.25.0)

##### What's Changed

- Bump minimist from 1.2.5 to 1.2.6 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/messense/maturin-action/pull/38](https://redirect.github.com/messense/maturin-action/pull/38)
- Add manylinux\_2\_28 cross compiling Docker images by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/40](https://redirect.github.com/messense/maturin-action/pull/40)

##### New Contributors

- [@&#8203;dependabot](https://redirect.github.com/dependabot) made
their first contribution in
[https://github.com/messense/maturin-action/pull/38](https://redirect.github.com/messense/maturin-action/pull/38)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.24.1...v1.25.0

###
[`v1.24.1`](https://redirect.github.com/PyO3/maturin-action/compare/v1.24.0...v1.24.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.24.0...v1.24.1)

###
[`v1.24.0`](https://redirect.github.com/PyO3/maturin-action/compare/v1.23.2...v1.24.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.23.2...v1.24.0)

###
[`v1.23.2`](https://redirect.github.com/PyO3/maturin-action/compare/v1.23.1...v1.23.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.23.1...v1.23.2)

###
[`v1.23.1`](https://redirect.github.com/PyO3/maturin-action/compare/v1.23.0...v1.23.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.23.0...v1.23.1)

###
[`v1.23.0`](https://redirect.github.com/PyO3/maturin-action/compare/v1.22.1...v1.23.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.22.1...v1.23.0)

###
[`v1.22.1`](https://redirect.github.com/PyO3/maturin-action/compare/v1.22.0...v1.22.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.22.0...v1.22.1)

###
[`v1.22.0`](https://redirect.github.com/PyO3/maturin-action/compare/v1.21.0...v1.22.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.21.0...v1.22.0)

###
[`v1.21.0`](https://redirect.github.com/PyO3/maturin-action/compare/v1.20.0...v1.21.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.20.0...v1.21.0)

###
[`v1.20.0`](https://redirect.github.com/PyO3/maturin-action/compare/v1.19.3...v1.20.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.19.3...v1.20.0)

###
[`v1.19.3`](https://redirect.github.com/PyO3/maturin-action/compare/v1.19.2...v1.19.3)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.19.2...v1.19.3)

###
[`v1.19.2`](https://redirect.github.com/PyO3/maturin-action/compare/v1.19.1...v1.19.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.19.1...v1.19.2)

###
[`v1.19.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.19.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.19.0...v1.19.1)

##### What's Changed

- Better support for macOS arm64 by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/22](https://redirect.github.com/messense/maturin-action/pull/22)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.19.0...v1.19.1

###
[`v1.19.0`](https://redirect.github.com/PyO3/maturin-action/compare/v1.18.1...v1.19.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.18.1...v1.19.0)

###
[`v1.18.1`](https://redirect.github.com/PyO3/maturin-action/compare/v1.18.0...v1.18.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.18.0...v1.18.1)

###
[`v1.18.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.18.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.17.0...v1.18.0)

##### What's Changed

- Do not attempt to pull local images by
[@&#8203;Tpt](https://redirect.github.com/Tpt) in
[https://github.com/messense/maturin-action/pull/19](https://redirect.github.com/messense/maturin-action/pull/19)

##### New Contributors

- [@&#8203;Tpt](https://redirect.github.com/Tpt) made their first
contribution in
[https://github.com/messense/maturin-action/pull/19](https://redirect.github.com/messense/maturin-action/pull/19)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.17.0...v1.18.0

###
[`v1.17.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.17.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.16.4...v1.17.0)

##### What's Changed

- Remove fallback maturin latest version by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/18](https://redirect.github.com/messense/maturin-action/pull/18)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.16.4...v1.17.0

###
[`v1.16.4`](https://redirect.github.com/PyO3/maturin-action/compare/v1.16.3...v1.16.4)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.16.3...v1.16.4)

###
[`v1.16.3`](https://redirect.github.com/PyO3/maturin-action/compare/v1.16.2...v1.16.3)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.16.2...v1.16.3)

###
[`v1.16.2`](https://redirect.github.com/PyO3/maturin-action/compare/v1.16.1...v1.16.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.16.1...v1.16.2)

###
[`v1.16.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.16.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.16.0...v1.16.1)

##### What's Changed

- Only add tool cache Python to PATH if no `pythonLocation` specified by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/17](https://redirect.github.com/messense/maturin-action/pull/17)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.16.0...v1.16.1

###
[`v1.16.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.16.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.15.1...v1.16.0)

##### What's Changed

- Add Python versions from tool cache to PATH on macOS by
[@&#8203;messense](https://redirect.github.com/messense) in
[https://github.com/messense/maturin-action/pull/16](https://redirect.github.com/messense/maturin-action/pull/16)

**Full Changelog**:
https://github.com/messense/maturin-action/compare/v1.15.1...v1.16.0

###
[`v1.15.1`](https://redirect.github.com/PyO3/maturin-action/compare/v1.15.0...v1.15.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.15.0...v1.15.1)

###
[`v1.15.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.15.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.14.2...v1.15.0)

-   Removed universal2 support for pyo3 0.13.x

###
[`v1.14.2`](https://redirect.github.com/PyO3/maturin-action/compare/v1.14.1...v1.14.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.14.1...v1.14.2)

###
[`v1.14.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.14.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.14.0...v1.14.1)

-   Update default maturin version to v0.11.3

###
[`v1.14.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.14.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.13.2...v1.14.0)

- Fixed maturin build error with `--cargo-extra-args` on macOS and
Windows.

###
[`v1.13.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.13.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.13.1...v1.13.2)

-   Update default maturin version to v0.11.2

###
[`v1.13.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.13.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.13.0...v1.13.1)

-   Update default maturin version to v0.11.1

###
[`v1.13.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.13.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.12.1...v1.13.0)

-   Add support for self-hosted arm64 runner
-   Update default maturin version to 0.11.0

###
[`v1.12.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.12.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.12.0...v1.12.1)

Allow passing `_PYTHON_SYSCONFIGDATA_NAME` to docker.

###
[`v1.12.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.12.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.11.1...v1.12.0)

Drop manylinux\_2\_24 ppc64 support.

###
[`v1.11.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.11.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.11.0...v1.11.1)

Strip `manylinux` prefix.

###
[`v1.11.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.11.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.10.4...v1.11.0)

Add more default manylinux\_2\_24 cross compile docker images

###
[`v1.10.4`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.10.4)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.10.3...v1.10.4)

Update default maturin version to `v0.10.6`

###
[`v1.10.3`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.10.3)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.10.2...v1.10.3)

Update default maturin version to `v0.10.5`

###
[`v1.10.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.10.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.10.1...v1.10.2)

Add support for x64 and x86 target aliases

###
[`v1.10.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.10.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.10.0...v1.10.1)

Add ppc64 alias

###
[`v1.10.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.10.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.9.0...v1.10.0)

Add support for `powerpc64-unknown-linux-gnu` target

###
[`v1.9.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.9.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.8.2...v1.9.0)

Use `messense/manylinux2014-cross:ppc64le` for ppc64le manylinux2014
cross compiling

###
[`v1.8.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.8.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.8.1...v1.8.2)

Skip target installaton if it is already installed

###
[`v1.8.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.8.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.8.0...v1.8.1)

Support target aliases for example `x86_64` on Linux alias to
`x86_64-unknown-linux-gnu`

###
[`v1.8.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.8.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.7.1...v1.8.0)

Add default containers for MUSL targets.

###
[`v1.7.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.7.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.7.0...v1.7.1)

Support set `manylinux` to auto to build for lowest compatible manylinux
tag

###
[`v1.7.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.7.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.6.2...v1.7.0)

-   Add aliases for manylinux 2010 & 2014
-   Support using QEMU for some architectures
-   Add default containers for `ppc64le` and `s390x`
- Pass `RUST_BACKTRACE`, `PYO3_CROSS` and `PYO3_CROSS_PYTHON_VERSION`
env vars to docker container.

###
[`v1.6.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.6.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.6.1...v1.6.2)

-   Allow building manylinux wheels on host without Docker
-   Set `SDKROOT` env var for macOS universal2 build

###
[`v1.6.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.6.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.6.0...v1.6.1)

Print maturin version after installation.

###
[`v1.6.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.6.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.5.2...v1.6.0)

Add default containers for platforms other than `x86_64`.

###
[`v1.5.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.5.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.5.1...v1.5.2)

Pass some useful env vars to docker run

###
[`v1.5.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.5.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.5.0...v1.5.1)

Run manylinux off jobs on host instead of in Docker

###
[`v1.5.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.5.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.4.2...v1.5.0)

Added support for specifying Rust toolchain

###
[`v1.4.2`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.4.2)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.4.1...v1.4.2)

-   Setup additional env vars for macOS universal2 build
-   Install `aarch64-apple-darwin` Rust target automatically

###
[`v1.4.1`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.4.1)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.4.0...v1.4.1)

Add fallback maturin version in case fetching latest maturin version
failed.

###
[`v1.4.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.4.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.3.0...v1.4.0)

Support vanilla manylinux docker containers

###
[`v1.3.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.3.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.2.0...v1.3.0)

-   Convert codebase to TypeScript
-   Added `target` input argument

###
[`v1.2.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.2.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1.1.0...v1.2.0)

Add `maturin` to PATH

###
[`v1.1.0`](https://redirect.github.com/PyO3/maturin-action/releases/tag/v1.1.0)

[Compare
Source](https://redirect.github.com/PyO3/maturin-action/compare/v1...v1.1.0)

Added support for manylinux build using `konstin2/maturin` docker
images.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:24:24 +02:00
renovate[bot]
08f86a5ffc
Update actions/setup-python digest to 8d9ed9a (#17067)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[actions/setup-python](https://redirect.github.com/actions/setup-python)
| action | digest | `4237552` -> `8d9ed9a` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:23:26 +02:00
renovate[bot]
4cc627ef77
Update astral-sh/setup-uv digest to 0c5e2b8 (#17068)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [astral-sh/setup-uv](https://redirect.github.com/astral-sh/setup-uv) |
action | digest | `2269511` -> `0c5e2b8` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:22:10 +02:00
renovate[bot]
244618a6f5
Update taiki-e/install-action digest to 6aca1cf (#17069)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[taiki-e/install-action](https://redirect.github.com/taiki-e/install-action)
| action | digest | `914ac1e` -> `6aca1cf` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:21:50 +02:00
renovate[bot]
e068ffe929
Update webfactory/ssh-agent action to v0.9.1 (#17074)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[webfactory/ssh-agent](https://redirect.github.com/webfactory/ssh-agent)
| action | patch | `v0.9.0` -> `v0.9.1` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>webfactory/ssh-agent (webfactory/ssh-agent)</summary>

###
[`v0.9.1`](https://redirect.github.com/webfactory/ssh-agent/blob/HEAD/CHANGELOG.md#v091-2024-03-17)

[Compare
Source](https://redirect.github.com/webfactory/ssh-agent/compare/v0.9.0...v0.9.1)

##### Fixed

- Fix path used to execute ssh-agent in cleanup.js to respect custom
paths set by input
([#&#8203;235](https://redirect.github.com/webfactory/ssh-agent/issues/235))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:20:04 +02:00
renovate[bot]
a5f4522078
Update CodSpeedHQ/action action to v3.5.0 (#17075)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [CodSpeedHQ/action](https://redirect.github.com/CodSpeedHQ/action) |
action | minor | `v3` -> `v3.5.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>CodSpeedHQ/action (CodSpeedHQ/action)</summary>

###
[`v3.5.0`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v3.5.0)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v3.4.0...v3.5.0)

#### What's Changed

##### <!-- 0 -->🚀 Features

- Add mode command arg by
[@&#8203;adriencaccia](https://redirect.github.com/adriencaccia) in
[#&#8203;69](https://redirect.github.com/CodSpeedHQ/runner/pull/69)
- Add a setup command by
[@&#8203;art049](https://redirect.github.com/art049) in
[#&#8203;61](https://redirect.github.com/CodSpeedHQ/runner/pull/61)
- Allow usage on any x86 or arm os with a warning by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;66](https://redirect.github.com/CodSpeedHQ/runner/pull/66)

##### <!-- 1 -->🐛 Bug Fixes

- Fix valgrind version checks by
[@&#8203;art049](https://redirect.github.com/art049) in
[#&#8203;65](https://redirect.github.com/CodSpeedHQ/runner/pull/65)

**Full Changelog**:
https://github.com/CodSpeedHQ/action/compare/v3.4.0...v3.5.0
**Full Runner Changelog**:
https://github.com/CodSpeedHQ/runner/blob/main/CHANGELOG.md

###
[`v3.4.0`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v3.4.0)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v3.3.1...v3.4.0)

#### What's Changed

##### <!-- 0 -->🚀 Features

- feat: add `GH_MATRIX` and `GH_STRATEGY` env variables by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[https://github.com/CodSpeedHQ/action/pull/123](https://redirect.github.com/CodSpeedHQ/action/pull/123)
- Add run_part to upload metadata by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[#&#8203;57](https://redirect.github.com/CodSpeedHQ/runner/pull/57)

##### <!-- 1 -->🐛 Bug Fixes

- Fix stderr error display by
[@&#8203;art049](https://redirect.github.com/art049) in
[#&#8203;63](https://redirect.github.com/CodSpeedHQ/runner/pull/63)

**Full Changelog**:
https://github.com/CodSpeedHQ/action/compare/v3.3.1...v3.4.0
**Full Runner Changelog**:
https://github.com/CodSpeedHQ/runner/blob/main/CHANGELOG.md

###
[`v3.3.1`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v3.3.1)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v3.3.0...v3.3.1)

#### What's Changed

##### <!-- 0 -->🚀 Features

- Bail when performance report s3 upload does not work by
[@&#8203;adriencaccia](https://redirect.github.com/adriencaccia)

##### <!-- 1 -->🐛 Bug Fixes

- Catch server error as well as client in upload error handling by
[@&#8203;adriencaccia](https://redirect.github.com/adriencaccia) in
[#&#8203;64](https://redirect.github.com/CodSpeedHQ/runner/pull/64)

**Full Runner Changelog**:
https://github.com/CodSpeedHQ/runner/blob/main/CHANGELOG.md

###
[`v3.3.0`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v3.3.0)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v3.2.0...v3.3.0)

#### What's Changed

##### <!-- 0 -->🚀 Features

- Allow downgrades while installing valgrind-codspeed by
[@&#8203;art049](https://redirect.github.com/art049)
- Update sysinfo crate by
[@&#8203;adriencaccia](https://redirect.github.com/adriencaccia) in
[#&#8203;62](https://redirect.github.com/CodSpeedHQ/runner/pull/62)

##### <!-- 1 -->🐛 Bug Fixes

- Unify environments between the two modes by
[@&#8203;art049](https://redirect.github.com/art049) in
[#&#8203;59](https://redirect.github.com/CodSpeedHQ/runner/pull/59)

##### <!-- 7 -->⚙️ Internals

- Bump valgrind-codspeed version to 3.24.0-0codspeed1 and change
supported systems by
[@&#8203;art049](https://redirect.github.com/art049)

**Full Runner Changelog**:
https://github.com/CodSpeedHQ/runner/blob/main/CHANGELOG.md

###
[`v3.2.0`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v3.2.0)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v3.1.0...v3.2.0)

#### Release Notes

##### <!-- 0 -->🚀 Features

- Implement gitlab ci provider by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[#&#8203;47](https://redirect.github.com/CodSpeedHQ/runner/pull/47)
- Add repository provider to upload metadata by
[@&#8203;fargito](https://redirect.github.com/fargito)
- Use system distribution id instead of name by
[@&#8203;fargito](https://redirect.github.com/fargito)

##### <!-- 2 -->🏗️ Refactor

- Move sender out of ghdata by
[@&#8203;fargito](https://redirect.github.com/fargito)
- Rename provider to ci provider by
[@&#8203;fargito](https://redirect.github.com/fargito)
- Use string for runId by
[@&#8203;fargito](https://redirect.github.com/fargito)
- Improve string interpolation by
[@&#8203;fargito](https://redirect.github.com/fargito)

##### <!-- 7 -->⚙️ Internals

- Configure git-cliff for changelog generation by
[@&#8203;art049](https://redirect.github.com/art049)
- Add rust settings by
[@&#8203;fargito](https://redirect.github.com/fargito)

**Associated runner release**:
https://github.com/CodSpeedHQ/runner/releases/tag/v3.2.0
**Full Changelog**:
https://github.com/CodSpeedHQ/action/compare/v3.1.0...v3.2.0

###
[`v3.1.0`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v3.1.0)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v3.0.1...v3.1.0)

#### What's Changed

This new release includes compatibility with our new `wall time`
instruments, which allow measurement of real execution timings. This
will be very useful for macro benchmarks running on properly isolated
machines. You can now use our **CodSpeed Macro** runners without
changing anything in your existing CI workflows.

Find more info on our Walltime instrument
[here](https://docs.codspeed.io/instruments/walltime/).


![image](https://redirect.github.com/user-attachments/assets/650d1123-5cd6-4309-84e0-d5dd6ced64f3)

**Full Changelog**:
https://github.com/CodSpeedHQ/action/compare/v3.0.1...v3.1.0

###
[`v3.0.1`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v3.0.1)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v3...v3.0.1)

#### What's Changed

- chore: bump runner version to 3.0.1 by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/CodSpeedHQ/action/pull/115](https://redirect.github.com/CodSpeedHQ/action/pull/115)
-   chore: support ubuntu 24.04

**Full Changelog**:
https://github.com/CodSpeedHQ/action/compare/v3.0.0...v3.0.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (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.

🔕 **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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 09:19:16 +02:00
cake-monotone
c6efa93cf7
[red-knot] Handle special case returning NotImplemented (#17034)
Some checks are pending
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[Knot Playground] Release / publish (push) Waiting to run
## Summary

Closes #16661

This PR includes two changes:

- `NotImplementedType` is now a member of `KnownClass`
- We skip `is_assignable_to` checks for `NotImplemented` when checking
return types

### Limitation

```py
def f(cond: bool) -> int:
    return 1 if cond else NotImplemented
```

The implementation covers cases where `NotImplemented` appears inside a
`Union`.
However, for more complex types (ex. `Intersection`) it will not worked.
In my opinion, supporting such complexity is unnecessary at this point.

## Test Plan

Two `mdtest` files were updated:

- `mdtest/function/return_type.md`
- `mdtest/type_properties/is_singleton.md`

To test `KnownClass`, run:
```bash
cargo test -p red_knot_python_semantic -- types::class::
```
2025-03-30 11:06:12 -07:00
Brent Westbrook
ab1011ce70
[syntax-errors] Single starred assignment target (#17024)
Some checks are pending
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[Knot Playground] Release / publish (push) Waiting to run
Summary
--

Detects starred assignment targets outside of tuples and lists like `*a
= (1,)`.

This PR only considers assignment statements. I also checked annotated
assigment statements, but these give a separate error that we already
catch, so I think they're okay not to consider:

```pycon
>>> *a: list[int] = []
  File "<python-input-72>", line 1
    *a: list[int] = []
      ^
SyntaxError: invalid syntax
```

Fixes #13759

Test Plan
--

New inline tests, plus a new `SemanticSyntaxError` for an existing
parser test. I also removed a now-invalid case from an otherwise-valid
test fixture.

The new semantic error leads to two errors for the case below:

```python
*foo() = 42
```

but this matches [pyright] too.

[pyright]: https://pyright-play.net/?code=FQMw9mAUCUAEC8sAsAmAUEA
2025-03-29 12:35:47 -04:00
Brent Westbrook
a0819f0c51
[syntax-errors] Store to or delete __debug__ (#16984)
Summary
--

Detect setting or deleting `__debug__`. Assigning to `__debug__` was a
`SyntaxError` on the earliest version I tested (3.8). Deleting
`__debug__` was made a `SyntaxError` in [BPO 45000], which said it was
resolved in Python 3.10. However, `del __debug__` was also a runtime
error (`NameError`) when I tested in Python 3.9.6, so I thought it was
worth including 3.9 in this check.

I don't think it was ever a *good* idea to try `del __debug__`, so I
think there's also an argument for not making this version-dependent at
all. That would only simplify the implementation very slightly, though.

[BPO 45000]: https://github.com/python/cpython/issues/89163

Test Plan
--

New inline tests. This also required adding a `PythonVersion` field to
the `TestContext` that could be taken from the inline `ParseOptions` and
making the version field on the options accessible.
2025-03-29 12:07:20 -04:00
Alex Waygood
8396d7cd63
Use Python 3.13 for most CI jobs (#17053)
Some checks are pending
CI / cargo clippy (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
2025-03-28 20:35:44 -04:00
Alex Waygood
9ae2900dc3
Run pre-commit via uv in CI (#17052)
Some checks failed
CI / cargo fmt (push) Waiting to run
CI / Determine changes (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[Knot Playground] Release / publish (push) Has been cancelled
Installing pre-commit via pip can take up to 6s sometimes in CI (e.g.
3961179597).
Installing pre-commit via uv should be faster. It also simplifies the
workflow and improves the amount we're dogfooding our own tools
2025-03-28 21:16:14 +00:00
Micha Reiser
37a40e30f6
[playground] Allow selecting the diagnostic message (#17051)
## Summary

Allow selecting the diagnostic message so that the message can be copied
(e.g. into an issue)

## Test Plan

<img width="1679" alt="Screenshot 2025-03-28 at 16 52 45"
src="https://github.com/user-attachments/assets/06674d87-6c88-45d4-b46c-0bcb3e151996"
/>
2025-03-28 20:58:05 +00:00
Alex Waygood
98438a77f2
Don't install Rust before running pre-commit in CI (#17050)
Following
29573daef5,
it doesn't look to me like any of the pre-commit hooks run in CI here
are Rust-based:

- `cargo fmt` is Rust-based but it's explicitly skipped as part of this
job and run as a separate CI job:
93052331b0/.pre-commit-config.yaml (L124-L125)
- The `typos` hook is Rust-based, but according to
https://github.com/crate-ci/typos/blob/master/docs/pre-commit.md
pre-commit should install a built binary rather than building the binary
from source

As such, I think this step in the workflow is just taking up 15s of CI
time and not actually speeding up pre-commit at all
2025-03-28 16:57:46 -04:00
Alex Waygood
93052331b0
[red-knot] Allow CallableTypeFromFunction to display the signatures of callable types that are not function literals (#17047)
I found this helpful for understanding some of the stuff that was going
on in https://github.com/astral-sh/ruff/pull/17005.
2025-03-28 20:23:04 +00:00
Micha Reiser
e07741e553
Add as_group methods to AnyNodeRef (#17048)
## Summary

This PR adds `as_<group>` methods to `AnyNodeRef` to e.g. convert an
`AnyNodeRef` to an `ExprRef`.

I need this for go to definition where the fallback is to test if
`AnyNodeRef` is an expression and then call `inferred_type` (listing
this mapping at every call site where we need to convert `AnyNodeRef` to
an `ExprRef` is a bit painful ;))

Split out from https://github.com/astral-sh/ruff/pull/16901

## Test Plan

`cargo test`
2025-03-28 19:42:45 +00:00
Micha Reiser
050f332771
Rename visit_preorder to visit_source_order (#17046)
## Summary

We renamed the `PreorderVisitor` to `SourceOrderVisitor` a long time ago
but it seems that we missed to rename the `visit_preorder` functions to
`visit_source_order`.
This PR renames `visit_preorder` to `visit_source_order`

## Test Plan

`cargo test`
2025-03-28 19:40:26 +00:00
Micha Reiser
6b02c39321
[red-knot] Incorporate recent ruff server improvements into red knot's LSP (#17044) 2025-03-28 18:39:18 +00:00
Eric Mark Martin
78b0b5a3ab
[red-knot] Factor out shared unpacking logic (#16595)
## Summary

This PR refactors the common logic for unpacking in assignment, for loops, and with items.

## Test Plan

Make sure existing tests pass.

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2025-03-28 23:52:51 +05:30
Matthew Mckee
0e48940ea4
[red-knot] Discover local venv folder in cli (#16917)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

Fixes #16744 

Code from 

bbf4f830b5/crates/uv-python/src/virtualenv.rs (L124-L144)

## Test Plan

Manual testing

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
2025-03-28 17:59:49 +00:00
Shunsuke Shibayama
aca6254e82
[red-knot] fix eager nested scopes handling (#16916)
## Summary

From #16861, and the continuation of #16915.

This PR fixes the incorrect behavior of
`TypeInferenceBuilder::infer_name_load` in eager nested scopes.

And this PR closes #16341.

## Test Plan

New test cases are added in `annotations/deferred.md`.
2025-03-28 11:11:56 -04:00
Eric Mark Martin
64171744dc
[red-knot] support narrowing on or patterns in matches (#17030)
## Summary

Part of #13694

Narrow in or-patterns by taking the type union of the type constraints
in each disjunct pattern.

## Test Plan

Add new tests to narrow/match.md

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2025-03-28 14:27:09 +00:00
David Peter
2e56cd3737
[red-knot] mypy_primer: switch to depot runners (#17037)
Some checks are pending
CI / cargo fmt (push) Waiting to run
CI / Determine changes (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
## Summary

Move the mypy_primer build to the depot runners to speed them up.

## Test Plan

Previous run of mypy_primer: 3m 49s
Run on this branch: 1m 38s
2025-03-28 14:34:11 +01:00
David Peter
e37a1b02f6 Revert "[red-knot] mypy_primer: switch to depot runners"
This reverts commit 9aa8dc4590.
2025-03-28 09:22:27 -04:00
David Peter
9aa8dc4590 [red-knot] mypy_primer: switch to depot runners 2025-03-28 09:21:22 -04:00
David Peter
df418d94b3
[red-knot] mypy_primer: use debug builds of red_knot (#17036)
## Summary

Use a debug build instead of a release build in order to speed up
mypy_primer runs.

## Test Plan

Previous mypy_primer run: 5m 45s
mypy_primer run on this branch: 3m 49s
2025-03-28 14:17:47 +01:00
David Peter
b90741fb92
[red-knot] Install mypy_primer from specific Git tag (#17035)
## Summary

Instead of installing from a branch, install mypy_primer from a specific
Git tag in order to make changes to the pipeline explicit.
2025-03-28 14:05:17 +01:00
Eric Mark Martin
3acf4e716d
[red-knot] support narrowing on constants in matches (#16974)
Some checks are pending
CI / cargo clippy (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[Knot Playground] Release / publish (push) Waiting to run
## Summary

Part of #13694

The implementation here was suspiciously straightforward so please lmk
if I missed something

Also some drive-by changes to DRY things up a bit

## Test Plan

Add new tests to narrow/match.md

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2025-03-28 02:36:51 +00:00
Alex Waygood
992a1af4c2
[red-knot] Reduce false positives on super() and enum-class attribute accesses (#17004)
Some checks are pending
CI / cargo fuzz build (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[Knot Playground] Release / publish (push) Waiting to run
## Summary

This PR adds some branches so that we infer `Todo` types for attribute
access on instances of `super()` and subtypes of `type[Enum]`. It reduces
false positives in the short term until we implement full support for
these features.

## Test Plan

New mdtests added + mypy_primer report
2025-03-27 17:30:56 -04:00
Alex Waygood
c963b185eb
mypy_primer: add typeshed-stats (#17022)
This is a well-typed codebase on which we only emit 23 diagnostics right
now, but which is highlighting some interesting issues. It uses some
modern syntactic features such as `match` statements that aren't used
much in other open-source projects in mypy_primer
2025-03-27 16:21:31 -04:00
Micha Reiser
4067a7e50c
[red-knot] Don't check non-python files (#17021)
## Summary

Fixes https://github.com/astral-sh/ruff/issues/17018

## Test Plan

I renamed a python file to `knot.toml` and verified that there are no
diagnostics. Renaming back the file to `*.py` brings back the
diagnostics
2025-03-27 19:45:04 +00:00
Micha Reiser
f9bc80ad55
[red-knot] Fix syntax highlighting for pyi files (#17015)
Monaco supports inferring the language based on the file's extension but
it doesn't seem to support `pyi`. I tried to patch up the python
language definition by adding `.pyi` to the language's `extension` array
but that didn't work. That's why I decided to patch up the language in
React.
2025-03-27 19:27:22 +00:00
David Peter
142fe0d29b
[playground] Fix reveal_type (#17013)
## Summary

Capture both `stdout` and `stderr` in a single stream. This fixes
`reveal_type`, which prints to `stderr` by default.

## Test Plan

Tested with a simple `reveal_type(1)` example and got the output:
```
Runtime value is '1'
Runtime type is 'int'
```
2025-03-27 17:21:26 +01:00
InSync
6ef522159d
Check pyproject.toml correctly when it is passed via stdin (#16971)
## Summary

Resolves #16950 and [a 1.5-year-old TODO
comment](8d16a5c8c9/crates/ruff/src/diagnostics.rs (L380)).

After this change, a `pyproject.toml` will be linted the same as any
Python files would when passed via stdin.

## Test Plan

Integration tests.
2025-03-27 16:01:45 +00:00
Matthew Mckee
b9a7328789
[red-knot] Make every type a subtype of object (#16960)
## Summary

Mainly for partially fixing #16953

## Test Plan

Update is_subtype tests. And should maybe do these checks for many other
types (is subtype of object but object is not subtype)

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2025-03-27 14:24:18 +00:00
Micha Reiser
640d821108
[red-knot] reveal-type should return the revaled type (#17007)
Some checks are pending
CI / cargo clippy (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
[Knot Playground] Release / publish (push) Waiting to run
## Summary

Return the revealed-type from the monkey-patched `revale_type`
implementation to
preserve the identity behavior.

This PR also isolates different script runs by assigning a different
`globals` dict for each script-run. See
https://github.com/pyodide/pyodide/issues/703
2025-03-27 03:04:57 +00:00
Micha Reiser
43ca85a351
[red-knot] Add run panel (#17002)
## Summary

This PR adds a new secondary panel to the red knot playground that
allows running the python code (current file) with
[pyodide](https://pyodide.org/en/stable/index.html) (currently Python
3.12 only).



## Test Plan


https://github.com/user-attachments/assets/7bda8ef7-19fb-4c2f-8e62-8e49a1416be1
2025-03-26 21:32:07 +00:00
Micha Reiser
338fed98a4
[red-knot] Use React suspense to show loading spinner (#16986)
Some checks are pending
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks (push) Blocked by required conditions
## Summary

Use React's suspense feature to show a loading spinner while the WASM
module is initializing.
2025-03-26 17:56:14 +00:00
Brent Westbrook
d70a3e6753
[syntax-errors] Multiple assignments in case pattern (#16957)
Summary
--

This PR detects multiple assignments to the same name in `case` patterns
by recursively visiting each pattern.

Test Plan
--

New inline tests.
2025-03-26 13:02:42 -04:00