File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/astral-sh/ruff-pre-commit
3+ # Check https://github.com/astral-sh/ruff-pre-commit/releases for the latest version
4+ rev : v0.14.5
5+ hooks :
6+ - id : ruff-check
7+ args : [--fix]
8+ - id : ruff-format
Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ Development setup (general)
8585---------------------------
8686
8787``` sh
88+ # Set up pre-commit hooks to check and format source code
89+ uv run pre-commit install
90+
8891# TEST-DRIVEN WORKFLOW
8992
9093# To run tests and check style
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ flatpak-indexer = "flatpak_indexer.cli:cli"
3838
3939[dependency-groups ]
4040dev = [
41+ " pre-commit>=2.1.1" ,
4142 " ruff" ,
4243]
4344
You can’t perform that action at this time.
0 commit comments