Skip to content

Commit 9dbdac2

Browse files
pre-commit for local formatting (#55)
* pre-commit for local and github actions formatting * removing pre-commit from github actions; just local --------- Co-authored-by: Justin Angevaare <justin.angevaare@wdgpublichealth.ca>
1 parent 532c3eb commit 9dbdac2

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.13.0
4+
hooks:
5+
- id: ruff-check
6+
args: [--fix] # Lint and auto-fix
7+
- id: ruff-format # Format code like black

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ dependencies = [
1313
[dependency-groups]
1414
dev = [
1515
"pytest",
16+
"pre-commit",
1617
"pytest-cov",
1718
]

0 commit comments

Comments
 (0)