Add linter

This commit is contained in:
Vik Paruchuri 2025-03-26 11:49:00 -04:00
parent b16f138b3e
commit b07b17d816
3 changed files with 356 additions and 39 deletions

12
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.10
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]

382
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@ opencv-python-headless = "^4.11.0.86"
einops = "^0.8.1"
mathml-to-latex = "^1.0.0"
pre-commit = "^4.2.0"
[tool.poetry.group.dev.dependencies]
jupyter = "^1.0.0"
pytesseract = "^0.3.10"