mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-26 18:55:46 +02:00
Add Pyright pre-commit
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.1.9
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
args: ["--fix"]
|
||||
# Run the formatter.
|
||||
- id: ruff-format
|
||||
- repo: https://github.com/RobertCraigie/pyright-python
|
||||
rev: v1.1.350
|
||||
hooks:
|
||||
- id: pyright
|
||||
|
||||
@@ -25,6 +25,8 @@ pyright = "^1.1.350"
|
||||
|
||||
[tool.pyright]
|
||||
typeCheckingMode = "standard"
|
||||
venvPath = "."
|
||||
venv = ".venv"
|
||||
|
||||
[tool.ruff]
|
||||
exclude = [
|
||||
|
||||
Reference in New Issue
Block a user