replicate / cog-llama-template

LLaMA Cog template
Apache License 2.0
307 stars 52 forks source link

Add Python tooling to project #51

Closed mattt closed 1 year ago

mattt commented 1 year ago

This PR adds a pyproject.toml file with Ruff set as an optional dev dependency. It also adds a requirements-dev.txt file generated by pip-compile and defines format and lint targets to Makefile. Finally, it applies changes by Ruff for formatting and automatic (safe) fixes to linter violations.

make lint still fails with 84 violations, so we can't use that in a CI workflow yet. But this takes a first step to start addressing that.

mattt commented 1 year ago

For posterity, here are the shas with fixes that I pruned before merging: c070f08 cac681f ad70ba5 8d6e566 d05a4b7