Add Pyright pre-commit

This commit is contained in:
Mike A
2024-02-10 17:33:22 +01:00
parent 7d09296565
commit 2382e15993
2 changed files with 6 additions and 3 deletions

View File

@@ -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