Download source/Makefile from khazic/spec-b300: direct link, hf CLI and curl.
- Browser
- Download file 920 Bytes
-
https://huggingface.co/khazic/spec-b300/resolve/main/source/Makefile
- Command line
-
hf download hf://khazic/spec-b300/source/Makefile
-
curl -L -o Makefile https://huggingface.co/khazic/spec-b300/resolve/main/source/Makefile
920 Bytes
| # Excludes any *_venv/ too: a virtualenv created inside the repo ships hundreds of | |
| # third-party .md files, and mdformat --check fails the gate on those rather than | |
| # on anything we wrote. | |
| MDFILES := $(shell find . -name "*.md" -not -path "./.venv/*" -not -path "./*_venv/*" -not -path "./build/*" -not -path "./.pytest_cache/*") | |
| # run checks on all files for the repo | |
| quality: | |
| @echo "Running quality checks" | |
| ruff check | |
| ruff format --check | |
| python -m mdformat --check $(MDFILES) | |
| mypy --check-untyped-defs | |
| python scripts/sync_provenance.py --check | |
| # style the code according to accepted standards for the repo | |
| # Note: We run `ruff format` twice. Once to fix long lines before lint check | |
| # and again to fix any formatting issues introduced by ruff check --fix | |
| style: | |
| @echo "Running style fixes" | |
| ruff format | |
| ruff check --fix | |
| ruff format --silent | |
| python -m mdformat $(MDFILES) | |
| python scripts/sync_provenance.py | |