mirror of https://github.com/astral-sh/ruff
[red-knot] mypy_primer: Use upstream repo (#17500)
## Summary Switch to the official version of [`mypy_primer`](https://github.com/hauntsaninja/mypy_primer), now that Red Knot support has been upstreamed (see https://github.com/hauntsaninja/mypy_primer/pull/138, https://github.com/hauntsaninja/mypy_primer/pull/135, https://github.com/hauntsaninja/mypy_primer/pull/151, https://github.com/hauntsaninja/mypy_primer/pull/155). ## Test Plan Locally and in CI
This commit is contained in:
parent
37a0836bd2
commit
38a3b056e3
|
|
@ -45,7 +45,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install mypy_primer
|
- name: Install mypy_primer
|
||||||
run: |
|
run: |
|
||||||
uv tool install "git+https://github.com/astral-sh/mypy_primer.git@add-red-knot-support-v6"
|
uv tool install "git+https://github.com/hauntsaninja/mypy_primer@ebaa9fd27b51a278873b63676fd25490cec6823b"
|
||||||
|
|
||||||
- name: Run mypy_primer
|
- name: Run mypy_primer
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
## Basics
|
## Basics
|
||||||
|
|
||||||
For now, we use our own [fork of mypy primer]. It can be run using `uvx --from "…" mypy_primer`. For example, to see the help message, run:
|
`mypy_primer` can be run using `uvx --from "…" mypy_primer`. For example, to see the help message, run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
uvx --from "git+https://github.com/astral-sh/mypy_primer.git@add-red-knot-support" mypy_primer -h
|
uvx --from "git+https://github.com/hauntsaninja/mypy_primer" mypy_primer -h
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can install the forked version of `mypy_primer` using:
|
Alternatively, you can install the forked version of `mypy_primer` using:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
uv tool install "git+https://github.com/astral-sh/mypy_primer.git@add-red-knot-support"
|
uv tool install "git+https://github.com/hauntsaninja/mypy_primer"
|
||||||
```
|
```
|
||||||
|
|
||||||
and then run it using `uvx mypy_primer` or just `mypy_primer`, if your `PATH` is set up accordingly (see: [Tool executables]).
|
and then run it using `uvx mypy_primer` or just `mypy_primer`, if your `PATH` is set up accordingly (see: [Tool executables]).
|
||||||
|
|
@ -56,6 +56,5 @@ mypy_primer --repo /path/to/ruff --old origin/main --new my/local-branch …
|
||||||
|
|
||||||
Note that you might need to clean up `/tmp/mypy_primer` in order for this to work correctly.
|
Note that you might need to clean up `/tmp/mypy_primer` in order for this to work correctly.
|
||||||
|
|
||||||
[fork of mypy primer]: https://github.com/astral-sh/mypy_primer/tree/add-red-knot-support
|
[full list of ecosystem projects]: https://github.com/hauntsaninja/mypy_primer/blob/master/mypy_primer/projects.py
|
||||||
[full list of ecosystem projects]: https://github.com/astral-sh/mypy_primer/blob/add-red-knot-support/mypy_primer/projects.py
|
|
||||||
[tool executables]: https://docs.astral.sh/uv/concepts/tools/#tool-executables
|
[tool executables]: https://docs.astral.sh/uv/concepts/tools/#tool-executables
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
arrow
|
|
||||||
async-utils
|
async-utils
|
||||||
bidict
|
bidict
|
||||||
black
|
black
|
||||||
|
|
@ -18,7 +17,6 @@ python-chess
|
||||||
python-htmlgen
|
python-htmlgen
|
||||||
rich
|
rich
|
||||||
scrapy
|
scrapy
|
||||||
strawberry
|
|
||||||
typeshed-stats
|
typeshed-stats
|
||||||
werkzeug
|
werkzeug
|
||||||
zipp
|
zipp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue