InSync
f54b82147e
[`flake8-bandit`] Add missing single-line/dotall regex flag (`S608`) ( #15654 )
...
## Summary
Resolves #15653 .
## Test Plan
`cargo nextest run` and `cargo insta test`.
2025-01-22 10:20:22 +05:30
Wei Lee
1e053531b6
[`airflow`] Argument `fail_stop` in DAG has been renamed as `fail_fast` (`AIR302`) ( #15633 )
...
## Summary
argument `fail_stop` in DAG has been renamed as `fail_fast` (AIR302)
## Test Plan
a test fixture has been updated
2025-01-22 09:18:57 +05:30
Alex Waygood
fbb06fe0ac
[red-knot] Small simplifications to `Type::is_subtype_of` and `Type::is_disjoint_from` ( #15622 )
...
## Summary
This PR generalizes some of the logic we have in `Type::is_subtype_of`
and `Type::is_disjoint_from` so that we fallback to the instance type of
the metaclass more often in `Type::ClassLiteral` and `Type::SubclassOf`
branches. This simplifies the code (we end up with one less branch in
`is_subtype_of`, and we can remove a helper method that's no longer
used), makes the code more robust (any fixes made to subtyping or
disjointness of instance types will automatically improve our
understanding of subtyping/disjointness for class-literal types and
`type[]` types) and more elegantly expresses the type-system invariants
encoded in these branches.
## Test Plan
No new tests added (it's a pure refactor, adding no new functionality).
All existing tests pass, however, including the property tests.
2025-01-22 00:31:55 +00:00
Zanie Blue
8a8240b8a6
Use new-style Windows runner tag ( #15661 )
...
I changed these org-wide to make it more obvious what runner it maps to;
did not update here as I did in uv
2025-01-21 17:44:17 -06:00
Douglas Creager
ef85c682bd
Remove customizable reference enum names ( #15647 )
...
The AST generator creates a reference enum for each syntax group — an
enum where each variant contains a reference to the relevant syntax
node. Previously you could customize the name of the reference enum for
a group — primarily because there was an existing `ExpressionRef` type
that wouldn't have lined up with the auto-derived name `ExprRef`. This
follow-up PR is a simple search/replace to switch over to the
auto-derived name, so that we can remove this customization point.
2025-01-21 13:46:31 -05:00
Douglas Creager
fa546b20a6
Separate grouped and ungrouped nodes more clearly in AST generator ( #15646 )
...
This is a minor cleanup to the AST generation script to make a clearer
separation between nodes that do appear in a group enum, and those that
don't. There are some types and methods that we create for every syntax
node, and others that refer to the group that the syntax node belongs
to, and which therefore don't make sense for ungrouped nodes. This new
separation makes it clearer which category each definition is in, since
you're either inside of a `for group in ast.groups` loop, or a `for node
in ast.all_nodes` loop.
2025-01-21 13:37:18 -05:00
InSync
fce4adfd41
[`flake8-simplify`] Mark fixes as unsafe (`SIM201`, `SIM202`) ( #15626 )
2025-01-21 18:17:48 +01:00
David Peter
13a6b5600b
[red-knot] mdtest runner: include stderr for crashing tests ( #15644 )
...
## Summary
Test executables usually write failure messages (including panics) to
stdout, but I just managed to make a mdtest crash with
```
thread 'mdtest__unary_not' has overflowed its stack
fatal runtime error: stack overflow
```
which is printed to stderr. This test simply appends stderr to stdout
(`stderr=subprocess.STDOUT` can not be used with `capture_output`)
## Test Plan
Make sure that the error message is now visible in the output of `uv -q
run crates/red_knot_python_semantic/mdtest.py`
2025-01-21 14:59:36 +00:00
Micha Reiser
067c6de465
Change `EnvironmentOptions::venv-path` to `Option<SystemPathBuf>` ( #15631 )
...
## Summary
The `Options` struct is intended to capture the user's configuration
options but
`EnvironmentOptions::venv_path` supports both a `SitePackages::Known`
and `SitePackages::Derived`.
Users should only be able to provide `SitePackages::Derived`—they
specify a path to a venv, and Red Knot derives the path to the
site-packages directory. We'll only use the `Known` variant once we
automatically discover the Python installation.
That's why this PR changes `EnvironmentOptions::venv_path` from
`Option<SitePackages>` to `Option<SystemPathBuf>`.
This requires making some changes to the file watcher test, and I
decided to use `extra_paths` over venv path
because our venv validation is annoyingly correct -- making mocking a
venv rather involved.
## Test Plan
`cargo test`
2025-01-21 14:10:41 +00:00
David Salvisberg
4366473d9b
[`flake8-type-checking`] Fix some safe fixes being labeled unsafe ( #15638 )
...
## Summary
We were mistakenly using `CommentRanges::has_comments` to determine
whether our edits
were safe, which sometimes expands the checked range to the end of a
line. But in order to
determine safety we need to check exactly the range we're replacing.
This bug affected the rules `runtime-cast-value` (`TC006`) and
`quoted-type-alias` (`TC008`)
although it was very unlikely to be hit for `TC006` and for `TC008` we
never hit it because we
were checking the wrong expression.
## Test Plan
`cargo nextest run`
2025-01-21 15:08:46 +01:00
Chandra Kiran G
cff9c13c42
feat: Update RUF055 to do var == value ( #15605 )
...
This commit fixes RUF055 rule to format `re.fullmatch(pattern, var)` to
`var == pattern` instead of the current `pattern == var` behaviour. This
is more idiomatic and easy to understand.
## Summary
This changes the current formatting behaviour of `re.fullmatch(pattern,
var)` to format it to `var == pattern` instead of `pattern == var`.
## Test Plan
I used a code file locally to see the updated formatting behaviour.
Fixes https://github.com/astral-sh/ruff/issues/14733
2025-01-21 08:47:06 -05:00
David Peter
4656e3c90f
[red-knot] Markdown test runner ( #15632 )
...
## Summary
As more and more tests move to Markdown, running the mdtest suite
becomes one of the most common tasks for developers working on Red Knot.
There are a few pain points when doing so, however:
- The `build.rs` script enforces recompilation (~five seconds) whenever
something changes in the `resource/mdtest` folder. This is strictly
necessary, because whenever files are added or removed, the test harness
needs to be updated. But this is very rarely the case! The most common
scenario is that a Markdown file has *changed*, and in this case, no
recompilation is necessary. It is currently not possible to distinguish
these two cases using `cargo::rerun-if-changed`. One can work around
this by running the test executable manually, but it requires finding
the path to the correct `mdtest-<random-hash>` executable.
- All Markdown tests are run by default. This is needed whenever Rust
code changes, but while working on the tests themselves, it is often
much more convenient to only run the tests for a single file. This can
be done by using a `mdtest__path_to_file` filter, but this needs to be
manually spelled out or copied from the test output.
- `cargo`s test output for a failing Markdown test is often
unnecessarily verbose. Unless there is an *actual* panic somewhere in
the code, mdtests usually fail with the explicit *"Some tests failed"*
panic in the mdtest suite. But in those cases, we are not interested in
the pointer to the source of this panic, but only in the mdtest suite
output.
This PR adds a Markdown test runner tool that attempts to make the
developer experience better.
Once it is started using
```bash
uv run -q crates/red_knot_python_semantic/mdtest.py
```
it will first recompile the tests once (if cargo requires it), find the
path to the `mdtest` executable, and then enter into a mode where it
watches for changes in the `red_knot_python_semantic` crate. Whenever …
* … a Markdown file changes, it will rerun the mdtest for this specific
file automatically (no recompilation!).
* … a Markdown file is added, it will recompile the tests and then run
the mdtest for the new file
* … Rust code is changed, it will recompile the tests and run all of
them
The tool also trims down `cargo test` output and only shows the actual
mdtest errors.
The tool will certainly require a few more iterations before it becomes
mature, but I'm curious to hear if there is any interest for something
like this.
## Test Plan
- Tested the new runner under various scenarios.
---------
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-01-21 14:06:35 +01:00
Alex Waygood
187a358d7a
[red-knot] Heterogeneous tuple types with differently ordered (but equivalent) unions at the same index should be considered equivalent ( #15637 )
2025-01-21 12:51:20 +00:00
Calum Young
023c52d82b
Standardise ruff config ( #15558 )
2025-01-21 12:09:11 +01:00
InSync
c616650dfa
[`ruff`] Needless `else` clause (`RUF047`) ( #15051 )
...
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-01-21 08:21:19 +00:00
InSync
4cfa355519
[`ruff`] Exempt `NewType` calls where the original type is immutable (`RUF009`) ( #15588 )
...
## Summary
Resolves #6447 .
## Test Plan
`cargo nextest run` and `cargo insta test`.
2025-01-20 20:14:47 +05:30
David Peter
134fefa945
[red-knot] Rename `bindings_ty`, `declarations_ty` ( #15618 )
...
## Summary
Rename two functions with outdated names (they used to return `Type`s):
* `bindings_ty` => `symbol_from_bindings` (returns `Symbol`)
* `declarations_ty` => `symbol_from_declarations` (returns a
`SymbolAndQualifiers` result)
I chose `symbol_from_*` instead of `*_symbol` as I found the previous
name quite confusing. Especially since `binding_ty` and `declaration_ty`
also exist (singular).
## Test Plan
—
---------
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-01-20 15:23:33 +01:00
Micha Reiser
73798327c6
Flatten `red_knot_project` import paths ( #15616 )
2025-01-20 14:57:57 +01:00
wooly18
f82ef32e53
[`red-knot`] No `cyclic-class-def` diagnostics for subclasses of cyclic classes ( #15561 )
...
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2025-01-20 13:35:29 +00:00
renovate[bot]
2a2ac8a483
Update pre-commit dependencies ( #15596 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2025-01-20 13:10:09 +00:00
Micha Reiser
d70d959612
Rename `red_knot_workspace` to `red_knot_project` ( #15615 )
2025-01-20 14:02:36 +01:00
Micha Reiser
80345e72c4
show-settings: Properly filter out backslashes on windows ( #15612 )
...
<!--
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? -->
## Test Plan
<!-- How was it tested? -->
2025-01-20 10:57:21 +01:00
renovate[bot]
36c90ebe86
Update Rust crate notify to v8 ( #15435 )
...
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [notify](https://redirect.github.com/notify-rs/notify ) |
workspace.dependencies | major | `7.0.0` -> `8.0.0` |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.
---
### Release Notes
<details>
<summary>notify-rs/notify (notify)</summary>
###
[`v8.0.0`](https://redirect.github.com/notify-rs/notify/blob/HEAD/CHANGELOG.md#notify-800-2025-01-10 )
[Compare
Source](https://redirect.github.com/notify-rs/notify/compare/notify-7.0.0...notify-8.0.0 )
- CHANGE: update notify-types to version 2.0.0
- CHANGE: raise MSRV to 1.77 **breaking**
- FEATURE: add config option to disable following symbolic links
[#​635]
- FIX: unaligned access to FILE_NOTIFY_INFORMATION [#​647]
**breaking**
[#​635]: https://redirect.github.com/notify-rs/notify/pull/635
[#​647]: https://redirect.github.com/notify-rs/notify/pull/647
</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:eyJjcmVhdGVkSW5WZXIiOiIzOS45Mi4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-20 10:41:16 +01:00
Wei Lee
cbf9b66fc1
[`airflow`] Extend `AIR303` with more symbols ( #15611 )
...
## Summary
Extend `AIR303` with the following rules
* `airflow.operators.datetime.*` → `airflow.providers.standard.time.operators.datetime.*`
* `airflow.operators.weekday.*` → `airflow.providers.standard.time.operators.weekday.*`
* `airflow.sensors.date_time.*` → `airflow.providers.standard.time.sensors.date_time.*`
* `airflow.sensors.time_sensor.*` → `airflow.providers.standard.time.sensors.time.*`
* `airflow.sensors.time_delta.*` → `airflow.providers.standard.time.sensors.time_delta.*`
* `airflow.sensors.weekday.*` → `airflow.providers.standard.time.sensors.weekday.*`
* `airflow.hooks.filesystem.*` → `airflow.providers.standard.hooks.filesystem.*`
* `airflow.hooks.package_index.*` → `airflow.providers.standard.hooks.package_index.*`
* `airflow.hooks.subprocess.*` → `airflow.providers.standard.hooks.subprocess.*`
* `airflow.triggers.external_task.*` → `airflow.providers.standard.triggers.external_task.*`
* `airflow.triggers.file.*` → `airflow.providers.standard.triggers.file.*`
* `airflow.triggers.temporal.*` → `airflow.providers.standard.triggers.temporal.*`
* `airflow.sensors.filesystem.FileSensor` → `airflow.providers.standard.sensors.filesystem.FileSensor`
* `airflow.operators.trigger_dagrun.TriggerDagRunOperator` → `airflow.providers.standard.operators.trigger_dagrun.TriggerDagRunOperator`
* `airflow.sensors.external_task.ExternalTaskMarker` → `airflow.providers.standard.sensors.external_task.ExternalTaskMarker`
* `airflow.sensors.external_task.ExternalTaskSensor` → `airflow.providers.standard.sensors.external_task.ExternalTaskSensor`
## Test Plan
a test fixture has been updated
2025-01-20 15:00:26 +05:30
Micha Reiser
248f0ec6b2
Isolate `show_settings` test from Ruff's `pyproject.toml ( #15610 )
...
## Summary
In preperation for https://github.com/astral-sh/ruff/pull/15558
Isolate the `show_settings` test instead of reading Ruff's
`pyproject.toml` for better test isolation.
## Test Plan
`cargo test`
2025-01-20 09:28:01 +00:00
Dhruv Manilawala
d8cabf62b1
Avoid large closure to make `rustfmt` work ( #15609 )
...
## Summary
I noticed this while reviewing
https://github.com/astral-sh/ruff/pull/15541 that the code inside the
large closure cannot be formatted by the Rust formatter. This PR
extracts the qualified name and inlines the match expression.
## Test Plan
`cargo clippy` and `cargo insta`
2025-01-20 09:15:48 +00:00
David Peter
912247635d
[red-knot] Move `Ty` enum to property tests ( #15608 )
...
## Summary
Move the `Ty` enum into the `property_tests` module, as it was only used
in a single place in `types.rs`.
2025-01-20 10:15:31 +01:00
InSync
5cd1f79864
[`flake8-bandit`] Report all references to suspicious functions (`S3`) ( #15541 )
...
## Summary
Resolves #15522 .
## Test Plan
`cargo nextest run` and `cargo insta test`.
---------
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2025-01-20 09:02:53 +00:00
David Peter
4eb465ee95
[red-knot] Move `type_alias_types` test to Markdown ( #15607 )
...
## Summary
Move `type_alias_types` test to Markdown
## Test Plan
New MD test
2025-01-20 09:55:54 +01:00
David Peter
9725a2d476
[red-knot] More exhaustive disjointness tests ( #15606 )
...
## Summary
Mostly just brings the structure/format of the disjointness-tests closer
to what we have for `is_subtype_of` etc.
2025-01-20 09:47:51 +01:00
InSync
975d1457c5
[red-knot] Migrate `is_disjoint_from` unit tests to Markdown tests ( #15580 )
...
## Summary
Part of and resolves #15397 , built on top of #15579 .
## Test Plan
Markdown tests.
2025-01-20 08:42:22 +01:00
Dhruv Manilawala
d97502d647
Include more labels in CHANGELOG sections ( #15566 )
...
## Summary
This PR updates Rooster config to include more labels, specifically:
* Include
[`diagnostics`](https://github.com/astral-sh/ruff/labels/diagnostics ),
[`docstring`](https://github.com/astral-sh/ruff/labels/docstring ),
[`fixes`](https://github.com/astral-sh/ruff/labels/fixes ) and
[`isort`](https://github.com/astral-sh/ruff/labels/isort ) for "Rule
changes" section
* Use
[`performance`](https://github.com/astral-sh/ruff/labels/performance )
for "Performance" section. We already have included "Performance"
section in various version, so let's make it official :)
* Ignore [`testing`](https://github.com/astral-sh/ruff/labels/testing )
label
The following is open:
* [`suppression`](https://github.com/astral-sh/ruff/labels/suppression )
2025-01-20 10:34:22 +05:30
renovate[bot]
15c6cb50a0
Update NPM Development dependencies ( #15601 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/react](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react )
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ))
| [`19.0.6` ->
`19.0.7`](https://renovatebot.com/diffs/npm/@types%2freact/19.0.6/19.0.7 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
|
[@typescript-eslint/eslint-plugin](https://typescript-eslint.io/packages/eslint-plugin )
([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ))
| [`8.19.1` ->
`8.20.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/8.19.1/8.20.0 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
|
[@typescript-eslint/parser](https://typescript-eslint.io/packages/parser )
([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ))
| [`8.19.1` ->
`8.20.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/8.19.1/8.20.0 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
|
[eslint-config-prettier](https://redirect.github.com/prettier/eslint-config-prettier )
| [`^9.0.0` ->
`^10.0.0`](https://renovatebot.com/diffs/npm/eslint-config-prettier/9.1.0/10.0.1 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
|
[eslint-plugin-react](https://redirect.github.com/jsx-eslint/eslint-plugin-react )
| [`7.37.3` ->
`7.37.4`](https://renovatebot.com/diffs/npm/eslint-plugin-react/7.37.3/7.37.4 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
|
[miniflare](https://redirect.github.com/cloudflare/workers-sdk/tree/main/packages/miniflare#readme )
([source](https://redirect.github.com/cloudflare/workers-sdk/tree/HEAD/packages/miniflare ))
| [`3.20241230.1` ->
`3.20241230.2`](https://renovatebot.com/diffs/npm/miniflare/3.20241230.1/3.20241230.2 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [postcss](https://postcss.org/ )
([source](https://redirect.github.com/postcss/postcss )) | [`8.4.49` ->
`8.5.1`](https://renovatebot.com/diffs/npm/postcss/8.4.49/8.5.1 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
| [wrangler](https://redirect.github.com/cloudflare/workers-sdk )
([source](https://redirect.github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler ))
| [`3.101.0` ->
`3.103.2`](https://renovatebot.com/diffs/npm/wrangler/3.101.0/3.103.2 ) |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.
---
### Release Notes
<details>
<summary>typescript-eslint/typescript-eslint
(@​typescript-eslint/eslint-plugin)</summary>
###
[`v8.20.0`](https://redirect.github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#8200-2025-01-13 )
[Compare
Source](https://redirect.github.com/typescript-eslint/typescript-eslint/compare/v8.19.1...v8.20.0 )
##### 🚀 Features
- **eslint-plugin:** \[consistent-type-assertions] add
arrayLiteralTypeAssertions options
([#​10565](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/10565 ))
- **eslint-plugin:** \[no-deprecated] add allow options
([#​10585](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/10585 ))
- **eslint-plugin:** \[no-misused-spread] add new rule
([#​10551](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/10551 ))
##### 🩹 Fixes
- **eslint-plugin:** \[no-unnecessary-condition] don't flag optional
chaining for union types with an unconstrained type parameters
([#​10602](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/10602 ))
- **eslint-plugin:** \[no-shadow] ignore ordering of type declarations
([#​10593](https://redirect.github.com/typescript-eslint/typescript-eslint/pull/10593 ))
##### ❤️ Thank You
- Josh Goldberg ✨
- Ronen Amiel
- YeonJuan [@​yeonjuan](https://redirect.github.com/yeonjuan )
You can read about our [versioning
strategy](https://main--typescript-eslint.netlify.app/users/versioning )
and
[releases](https://main--typescript-eslint.netlify.app/users/releases )
on our website.
</details>
<details>
<summary>typescript-eslint/typescript-eslint
(@​typescript-eslint/parser)</summary>
###
[`v8.20.0`](https://redirect.github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#8200-2025-01-13 )
[Compare
Source](https://redirect.github.com/typescript-eslint/typescript-eslint/compare/v8.19.1...v8.20.0 )
This was a version bump only for parser to align it with other projects,
there were no code changes.
You can read about our [versioning
strategy](https://main--typescript-eslint.netlify.app/users/versioning )
and
[releases](https://main--typescript-eslint.netlify.app/users/releases )
on our website.
</details>
<details>
<summary>prettier/eslint-config-prettier
(eslint-config-prettier)</summary>
###
[`v10.0.1`](https://redirect.github.com/prettier/eslint-config-prettier/releases/tag/v10.0.1 )
[Compare
Source](https://redirect.github.com/prettier/eslint-config-prettier/compare/v10.0.0...v10.0.1 )
### eslint-config-prettier
#### 10.0.1
#### What's Changed
- chore: migrate to changeset for automatically releasing by
[@​JounQin](https://redirect.github.com/JounQin ) in
[https://github.com/prettier/eslint-config-prettier/pull/278 ](https://redirect.github.com/prettier/eslint-config-prettier/pull/278 )
- add support for `@stylistic/eslint-plugin` by
[@​abrahamguo](https://redirect.github.com/abrahamguo ) in
[https://github.com/prettier/eslint-config-prettier/pull/272 ](https://redirect.github.com/prettier/eslint-config-prettier/pull/272 )
#### New Contributors
- [@​JounQin](https://redirect.github.com/JounQin ) made their
first contribution in
[https://github.com/prettier/eslint-config-prettier/pull/278 ](https://redirect.github.com/prettier/eslint-config-prettier/pull/278 )
- [@​abrahamguo](https://redirect.github.com/abrahamguo ) made
their first contribution in
[https://github.com/prettier/eslint-config-prettier/pull/272 ](https://redirect.github.com/prettier/eslint-config-prettier/pull/272 )
**Full Changelog**:
https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.0.1
###
[`v10.0.0`](https://redirect.github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1000 )
[Compare
Source](https://redirect.github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.0.0 )
##### Major Changes
-
[#​272](https://redirect.github.com/prettier/eslint-config-prettier/pull/272 )
[`5be64be`](5be64bef68 )
Thanks [@​abrahamguo](https://redirect.github.com/abrahamguo )! -
add support for
[@​stylistic](https://redirect.github.com/stylistic ) formatting
rules
</details>
<details>
<summary>jsx-eslint/eslint-plugin-react (eslint-plugin-react)</summary>
###
[`v7.37.4`](https://redirect.github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7374---20250112 )
[Compare
Source](https://redirect.github.com/jsx-eslint/eslint-plugin-react/compare/v7.37.3...v7.37.4 )
##### Fixed
- \[`no-unknown-property`]: support `onBeforeToggle`, `popoverTarget`,
`popoverTargetAction` attributes ([#​3865][]
[@​acusti](https://redirect.github.com/acusti ))
- \[types] fix types of flat configs ([#​3874][]
[@​ljharb](https://redirect.github.com/ljharb ))
[7.37.4]:
https://redirect.github.com/jsx-eslint/eslint-plugin-react/compare/v7.37.3...v7.37.4
[#​3874]:
https://redirect.github.com/jsx-eslint/eslint-plugin-react/pull/3874
[#​3865]:
https://redirect.github.com/jsx-eslint/eslint-plugin-react/pull/3865
</details>
<details>
<summary>cloudflare/workers-sdk (miniflare)</summary>
###
[`v3.20241230.2`](https://redirect.github.com/cloudflare/workers-sdk/blob/HEAD/packages/miniflare/CHANGELOG.md#3202412302 )
[Compare
Source](https://redirect.github.com/cloudflare/workers-sdk/compare/miniflare@3.20241230.1...miniflare@3.20241230.2 )
##### Patch Changes
-
[#​7738](https://redirect.github.com/cloudflare/workers-sdk/pull/7738 )
[`8e9aa40`](8e9aa40a6c )
Thanks [@​penalosa](https://redirect.github.com/penalosa )! - Use
TEXT bindings for plain text values in Miniflare. This is an internal
detail that should have no user facing impact.
</details>
<details>
<summary>postcss/postcss (postcss)</summary>
###
[`v8.5.1`](https://redirect.github.com/postcss/postcss/blob/HEAD/CHANGELOG.md#851 )
[Compare
Source](https://redirect.github.com/postcss/postcss/compare/8.5.0...8.5.1 )
- Fixed backwards compatibility for complex cases (by
[@​romainmenke](https://redirect.github.com/romainmenke )).
###
[`v8.5.0`](https://redirect.github.com/postcss/postcss/releases/tag/8.5.0 ):
8.5 “Duke Alloces”
[Compare
Source](https://redirect.github.com/postcss/postcss/compare/8.4.49...8.5.0 )
<img
src="https://github.com/user-attachments/assets/6ef654a0-d675-4ba0-a670-e28ef27062f5 "
align="right" width="200" height="200" alt="President Alloces seal">
PostCSS 8.5 brought API to work better with non-CSS sources like HTML,
Vue.js/Svelte sources or CSS-in-JS.
[@​romainmenke](https://redirect.github.com/romainmenke ) during
[his work](https://redirect.github.com/postcss/postcss/issues/1995 ) on
[Stylelint](https://stylelint.io ) added `Input#document` in additional
to `Input#css`.
```js
root.source.input.document //=> "<p>Hello</p>
// <style>
// p {
// color: green;
// }
// </style>"
root.source.input.css //=> "p {
// color: green;
// }"
```
#### Thanks to Sponsors
This release was possible thanks to our community.
If your company wants to support the sustainability of front-end
infrastructure or wants to give some love to PostCSS, you can join our
supporters by:
- [**Tidelift**](https://tidelift.com/ ) with a Spotify-like subscription
model supporting all projects from your lock file.
- Direct donations at [**GitHub
Sponsors**](https://redirect.github.com/sponsors/ai ) or [**Open
Collective**](https://opencollective.com/postcss#section-contributors ).
</details>
<details>
<summary>cloudflare/workers-sdk (wrangler)</summary>
###
[`v3.103.2`](https://redirect.github.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#31032 )
[Compare
Source](https://redirect.github.com/cloudflare/workers-sdk/compare/wrangler@3.103.1...wrangler@3.103.2 )
##### Patch Changes
-
[#​7804](https://redirect.github.com/cloudflare/workers-sdk/pull/7804 )
[`16a9460`](16a9460ea6 )
Thanks [@​vicb](https://redirect.github.com/vicb )! -
fix(wrangler): use require.resolve to resolve unenv path
###
[`v3.103.1`](https://redirect.github.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#31031 )
[Compare
Source](https://redirect.github.com/cloudflare/workers-sdk/compare/wrangler@3.103.0...wrangler@3.103.1 )
##### Patch Changes
-
[#​7798](https://redirect.github.com/cloudflare/workers-sdk/pull/7798 )
[`a1ff045`](a1ff045cfc )
Thanks
[@​CarmenPopoviciu](https://redirect.github.com/CarmenPopoviciu )!
- Reverts
[#​7720](https://redirect.github.com/cloudflare/workers-sdk/issues/7720 )
as it introduced breakage in some of the C3 templates (eg. Nuxt)
###
[`v3.103.0`](https://redirect.github.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#31030 )
[Compare
Source](https://redirect.github.com/cloudflare/workers-sdk/compare/wrangler@3.102.0...wrangler@3.103.0 )
##### Minor Changes
-
[#​5086](https://redirect.github.com/cloudflare/workers-sdk/pull/5086 )
[`8faf2c0`](8faf2c0741 )
Thanks
[@​dario-piotrowicz](https://redirect.github.com/dario-piotrowicz )!
- add `--strict-vars` option to `wrangler types`
add a new `--strict-vars` option to `wrangler types` that developers can
(by setting the
flag to `false`) use to disable the default strict/literal types
generation for their variables
opting out of strict variables can be useful when developers change
often their `vars` values,
even more so when multiple environments are involved
###
[`v3.102.0`](https://redirect.github.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#31020 )
[Compare
Source](https://redirect.github.com/cloudflare/workers-sdk/compare/wrangler@3.101.0...wrangler@3.102.0 )
##### Minor Changes
-
[#​7592](https://redirect.github.com/cloudflare/workers-sdk/pull/7592 )
[`f613276`](f6132761c8 )
Thanks [@​garrettgu10](https://redirect.github.com/garrettgu10 )! -
New filter validation logic supporting set and range queries in
Vectorize CLI
##### Patch Changes
-
[#​7750](https://redirect.github.com/cloudflare/workers-sdk/pull/7750 )
[`df0e5be`](df0e5bef81 )
Thanks [@​andyjessop](https://redirect.github.com/andyjessop )! -
bug: Removes the (local) tag on Vectorize bindings in the console output
of `wrangler dev`, and adds-in the same tag for Durable Objects (which
are emulated locally in `wrangler dev`).
-
[#​7732](https://redirect.github.com/cloudflare/workers-sdk/pull/7732 )
[`d102b60`](d102b60238 )
Thanks [@​Ankcorn](https://redirect.github.com/Ankcorn )! - fix
pages secret bulk copy
-
[#​7706](https://redirect.github.com/cloudflare/workers-sdk/pull/7706 )
[`c63f1b0`](c63f1b0790 )
Thanks [@​penalosa](https://redirect.github.com/penalosa )! -
Remove the server-based dev registry in favour of the more stable
file-based dev registry. There should be no user-facing impact.
- Updated dependencies
\[[`8e9aa40`](8e9aa40a6c )]:
- miniflare@3.20241230.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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-20 10:25:36 +05:30
Dhruv Manilawala
613951d848
Ignore notebook with syntax error in ecosystem ( #15604 )
...
I'll open a PR in `openai/openai-cookbook` to fix these syntax errors
later but for now let's just ignore the notebook.
<img width="2560" alt="Screenshot 2025-01-20 at 10 17 43 AM"
src="https://github.com/user-attachments/assets/075127e4-956d-43f9-b175-b492600dbdee "
/>
2025-01-20 04:53:22 +00:00
renovate[bot]
070c160fd5
Update dependency tomli_w to v1.2.0 ( #15600 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tomli_w](https://redirect.github.com/hukkin/tomli-w )
([changelog](https://redirect.github.com/hukkin/tomli-w/blob/master/CHANGELOG.md ))
| `==1.1.0` -> `==1.2.0` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.
---
### Release Notes
<details>
<summary>hukkin/tomli-w (tomli_w)</summary>
###
[`v1.2.0`](https://redirect.github.com/hukkin/tomli-w/blob/HEAD/CHANGELOG.md#120 )
[Compare
Source](https://redirect.github.com/hukkin/tomli-w/compare/1.1.0...1.2.0 )
- Added
- Always preserve `decimal.Decimal` type in parse round trips
- Improved
- Better `TypeError` message on invalid mapping keys
- Unify type representation in error messages
- Performance
- Improve import time by removing `typing` import
- Improve import time by removing `string` import
- Improve import time by lazy importing `decimal`
</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-20 10:18:43 +05:30
renovate[bot]
c0383daf58
Update Rust crate similar to v2.7.0 ( #15602 )
2025-01-19 22:46:45 -05:00
renovate[bot]
780335b50d
Update Rust crate uuid to v1.12.0 ( #15599 )
2025-01-19 22:45:12 -05:00
renovate[bot]
07f2308557
Update cloudflare/wrangler-action action to v3.13.1 ( #15594 )
2025-01-19 22:31:47 -05:00
renovate[bot]
06d9f8ba00
Update Rust crate tracing-indicatif to v0.3.9 ( #15593 )
2025-01-19 22:31:38 -05:00
renovate[bot]
57a84a3354
Update dependency ruff to v0.9.2 ( #15595 )
2025-01-19 22:31:26 -05:00
renovate[bot]
b49dee0959
Update Rust crate bitflags to v2.8.0 ( #15597 )
2025-01-19 22:31:19 -05:00
renovate[bot]
68755ac1e3
Update Rust crate ordermap to v0.5.5 ( #15591 )
2025-01-19 22:31:02 -05:00
renovate[bot]
b9402688b1
Update Rust crate serde_json to v1.0.137 ( #15592 )
2025-01-19 22:30:54 -05:00
renovate[bot]
75eccfd2a2
Update Rust crate log to v0.4.25 ( #15590 )
2025-01-19 22:30:32 -05:00
renovate[bot]
3c043e7e70
Update Rust crate indexmap to v2.7.1 ( #15589 )
2025-01-19 22:30:24 -05:00
Charlie Marsh
98fccec2e7
Avoid removing too many imports in `redefined-while-unused` ( #15585 )
...
## Summary
Closes https://github.com/astral-sh/ruff/issues/15583 .
2025-01-19 13:28:08 -05:00
InSync
444f799f5e
[red-knot] Two gradual equivalent fully static types are also equivalent ( #15579 )
2025-01-19 16:37:22 +00:00
Alex Waygood
2b24b3b316
[red-knot] Ensure differently ordered unions and intersections are considered equivalent ( #15516 )
2025-01-19 16:10:42 +00:00
Charlie Marsh
b8e5b95423
Avoid quadratic membership check in import fixes ( #15576 )
...
## Summary
This leads to an explosion in runtime for (admittedly absurd) cases with
tens of thousands of imports.
2025-01-18 23:01:26 +00:00
Charlie Marsh
6004c8c003
Apply redefinition fixes by source code order ( #15575 )
...
## Summary
Right now, these are being applied in random order, since if we have two
`RedefinitionWhileUnused`, it just takes the first-generated (whereas
the next comparator in the sort here orders by location)... Which means
we frequently have to re-run!
2025-01-18 17:44:10 -05:00