Skip to content

Commit

Permalink
Adding pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo385 committed Dec 16, 2024
1 parent 5411e74 commit 9f73ce8
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.3
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format
2 changes: 1 addition & 1 deletion run_checks.sh → lint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

uv sync
.venv/bin/ruff check
.venv/bin/ruff check --select I --fix
.venv/bin/pyright
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ installer = "uv"
include = ["lazy_github*"]

[tool.ruff]

line-length = 120

[tool.uv]
dev-dependencies = [
"pyright>=1.1.377",
"ruff>=0.6.1",
"pre-commit",
]
103 changes: 103 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f73ce8

Please sign in to comment.