OrcaCollective / 1-312-hows-my-driving

Easy public vehicle lookup
MIT License
3 stars 8 forks source link

CI #34

Closed AetherUnbound closed 3 years ago

AetherUnbound commented 3 years ago

Please...Madison....you need this

AetherUnbound commented 3 years ago

The signal-scanner-bot can be used as reference for this.

sarayourfriend commented 3 years ago

@AetherUnbound Is the idea for this issue to add something like pylint and black? Doesn't look like we have unit tests to fail against at the moment so just linting seems like a good start?

AetherUnbound commented 3 years ago

Yes! The linters in the linked repo (here specifically: https://github.com/SeattleDSA/signal-scanner-bot/blob/main/.github/workflows/pull-request.yml) are a great place to start. We could actually use pre-commit instead to manage all this (I've been using that more lately) but there's a fair amount to figure out in setting that up if you're haven't used that before so the github workflow is a great start.

sarayourfriend commented 3 years ago

I've only ever set it up using husky which made it simple, but that's only for JS projects as far as I know. I'll look into setting up the pre-commit hooks as well as the workflows 🙌

AetherUnbound commented 3 years ago

Awesome! Precommit just lets us consolidate all the individual checks into one large check that's run with pre-commit run --all-files. I'll try to see if I can post an example config here