chore: Configure ruff in its own file, add precommit hooks#72
chore: Configure ruff in its own file, add precommit hooks#72
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #72 +/- ##
=======================================
Coverage 90.89% 90.89%
=======================================
Files 13 13
Lines 846 846
Branches 124 91 -33
=======================================
Hits 769 769
Misses 47 47
Partials 30 30 🚀 New features to boost your workflow:
|
=== Do not change lines below ===
{
"chain": [],
"cmd": "uv lock",
"exit": 0,
"extra_inputs": [],
"inputs": [
"pyproject.toml",
"uv.lock"
],
"outputs": [
"uv.lock"
],
"pwd": "."
}
^^^ Do not change lines above ^^^
=== Do not change lines below ===
{
"chain": [],
"cmd": "bash -c 'ruff check --fix && ruff format'",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
b13d4a3 to
a507fa9
Compare
|
I suppose I should have checked that we didn't already have a ruff config in pyproject.toml before reviewing this. I've moved the config over to ruff.toml for the sake of copyability. I also commented our extend-select and ignores, so we can choose whether to adopt these in other projects. |
I looked there first before I started this endeavor, but forgot as well ;) |
Just like the title states.