Skip to content

Commit 5013487

Browse files
committed
FEATURE: Add pyright support
1 parent 187cf8b commit 5013487

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ repos:
2626
"--rcfile=.pylintrc", # Link to your config file
2727
]
2828
stages: [pre-push]
29+
30+
# - repo: https://github.com/RobertCraigie/pyright-python
31+
# rev: v1.1.389
32+
# hooks:
33+
# - id: pyright

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ dev = [
5353
"mock",
5454
"pyinstaller",
5555
"mypy",
56+
"pyright",
5657
"github",
5758
]
5859

@@ -208,4 +209,10 @@ strict_equality = true
208209
warn_unused_configs = true
209210

210211
files = ["ardupilot_methodic_configurator/*.py"]
211-
exclude = ["unittests"]
212+
exclude = ["unittests"]
213+
214+
[tool.pyright]
215+
exclude = [".venv"]
216+
pythonVersion = "3.9"
217+
venvPath = "."
218+
venv = ".venv"

0 commit comments

Comments
 (0)