mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:54:48 +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 ..
|
||||
|
||||
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 \
|
||||
--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
|
||||
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
|
||||
option to work correctly.
|
||||
|
|
|
@ -33,7 +33,9 @@ colour
|
|||
com2ann
|
||||
comtypes
|
||||
core
|
||||
cpython
|
||||
CPython (Argument Clinic)
|
||||
CPython (cases_generator)
|
||||
CPython (peg_generator)
|
||||
cwltool
|
||||
dacite
|
||||
dd-trace-py
|
||||
|
|
|
@ -5,7 +5,9 @@ echo "Enabling mypy primer specific configuration overloads (see .github/mypy-pr
|
|||
mkdir -p ~/.config/ty
|
||||
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"
|
||||
git rev-list --format=%s --max-count=1 "${GITHUB_SHA}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue