mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-10 01:34:28 -06:00
Local runs of make fetch_github_stars required a GITHUB_TOKEN in .env even when gh was already logged in. Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
620 B
Makefile
33 lines
620 B
Makefile
-include .env
|
|
export
|
|
|
|
install:
|
|
uv sync --locked
|
|
|
|
fetch_github_stars:
|
|
GITHUB_TOKEN="$${GITHUB_TOKEN:-$$(gh auth token)}" uv run python website/fetch_github_stars.py
|
|
|
|
fetch_pypi_downloads:
|
|
uv run python website/fetch_pypi_downloads_via_clickpy.py
|
|
|
|
test:
|
|
uv run pytest website/tests/ -v
|
|
|
|
lint:
|
|
uv run ruff check .
|
|
|
|
format:
|
|
uv run ruff format .
|
|
|
|
typecheck:
|
|
uv run ty check website
|
|
|
|
build:
|
|
uv run python website/build.py
|
|
|
|
preview: build
|
|
uv run watchfiles \
|
|
'uv run python website/build.py' \
|
|
README.md website/templates website/static website/data & \
|
|
python -m http.server -b 127.0.0.1 -d website/output/ 8000
|