mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
23 lines
953 B
Docker
23 lines
953 B
Docker
# [crater](https://github.com/rust-lang/crater)-inspired check that tests against a large number of
|
|
# projects, mainly from https://github.com/akx/ruff-usage-aggregate.
|
|
#
|
|
# We run this in a Docker container as Ruff isn't designed for untrusted inputs.
|
|
#
|
|
# Either download https://github.com/akx/ruff-usage-aggregate/blob/master/data/known-github-tomls.jsonl as
|
|
# `github_search.jsonl` or follow the instructions in the README to scrape your own dataset.
|
|
#
|
|
# From the project root:
|
|
# ```
|
|
# cargo build
|
|
# docker buildx build -f scripts/Dockerfile.ecosystem -t ruff-ecosystem-checker --load .
|
|
# docker run --rm ruff-ecosystem-checker
|
|
# ```
|
|
|
|
FROM python:3.11
|
|
RUN python -m venv .venv && .venv/bin/pip install ruff
|
|
ADD scripts/check_ecosystem.py check_ecosystem.py
|
|
ADD github_search.jsonl github_search.jsonl
|
|
ADD target/debug/ruff ruff-new
|
|
|
|
CMD ["python", "check_ecosystem.py", "--verbose", "--projects", "github_search.jsonl", "ruff-new", ".venv/bin/ruff"]
|