mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:04:51 +00:00
[ty] Use full project names in good.txt
This commit is contained in:
parent
09f570af92
commit
048182635a
4 changed files with 14 additions and 4 deletions
2
.github/workflows/ty-ecosystem-report.yaml
vendored
2
.github/workflows/ty-ecosystem-report.yaml
vendored
|
@ -49,7 +49,7 @@ jobs:
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
uv tool install "git+https://github.com/astral-sh/ecosystem-analyzer@27dd66d9e397d986ef9c631119ee09556eab8af9"
|
uv tool install "git+https://github.com/astral-sh/ecosystem-analyzer@fc0f612798710b0dd69bb7528bc9b361dc60bd43"
|
||||||
|
|
||||||
ecosystem-analyzer \
|
ecosystem-analyzer \
|
||||||
--verbose \
|
--verbose \
|
||||||
|
|
|
@ -31,7 +31,13 @@ mypy_primer \
|
||||||
```
|
```
|
||||||
|
|
||||||
This will show the diagnostics diff for the `black` project between the `main` branch and your `my/feature` branch. To run the
|
This will show the diagnostics diff for the `black` project between the `main` branch and your `my/feature` branch. To run the
|
||||||
diff for all projects we currently enable in CI, use `--project-selector "/($(paste -s -d'|' crates/ty_python_semantic/resources/primer/good.txt))\$"`.
|
diff for all projects we currently enable in CI, run
|
||||||
|
|
||||||
|
```sh
|
||||||
|
SELECTOR="$(paste -s -d'|' "crates/ty_python_semantic/resources/primer/good.txt" | sed -e 's@(@\\(@g' -e 's@)@\\)@g')"
|
||||||
|
```
|
||||||
|
|
||||||
|
and then use `--project-selector "$SELECTOR"`.
|
||||||
|
|
||||||
You can also take a look at the [full list of ecosystem projects]. Note that some of them might still need a `ty_paths` configuration
|
You can also take a look at the [full list of ecosystem projects]. Note that some of them might still need a `ty_paths` configuration
|
||||||
option to work correctly.
|
option to work correctly.
|
||||||
|
|
|
@ -33,7 +33,9 @@ colour
|
||||||
com2ann
|
com2ann
|
||||||
comtypes
|
comtypes
|
||||||
core
|
core
|
||||||
cpython
|
CPython (Argument Clinic)
|
||||||
|
CPython (cases_generator)
|
||||||
|
CPython (peg_generator)
|
||||||
cwltool
|
cwltool
|
||||||
dacite
|
dacite
|
||||||
dd-trace-py
|
dd-trace-py
|
||||||
|
|
|
@ -5,7 +5,9 @@ echo "Enabling mypy primer specific configuration overloads (see .github/mypy-pr
|
||||||
mkdir -p ~/.config/ty
|
mkdir -p ~/.config/ty
|
||||||
cp .github/mypy-primer-ty.toml ~/.config/ty/ty.toml
|
cp .github/mypy-primer-ty.toml ~/.config/ty/ty.toml
|
||||||
|
|
||||||
PRIMER_SELECTOR="$(paste -s -d'|' "${PRIMER_SELECTOR}")"
|
# Join the lines (project names) of the file into a large regex
|
||||||
|
# using `|` and escape parentheses.
|
||||||
|
PRIMER_SELECTOR="$(paste -s -d'|' "${PRIMER_SELECTOR}" | sed -e 's@(@\\(@g' -e 's@)@\\)@g')"
|
||||||
|
|
||||||
echo "new commit"
|
echo "new commit"
|
||||||
git rev-list --format=%s --max-count=1 "${GITHUB_SHA}"
|
git rev-list --format=%s --max-count=1 "${GITHUB_SHA}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue