Skip to content

Commit 1b8eee0

Browse files
committed
Add Pyright to environment and create placeholder pre-commit of files to scan
1 parent bd11818 commit 1b8eee0

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ repos:
2323
args:
2424
- --license-filepath
2525
- LICENSE.md
26-
26+
- repo: local
27+
hooks:
28+
- id: pyright
29+
name: pyright
30+
entry: poetry run pyright
31+
language: system
32+
types: [python]
33+
pass_filenames: false
2734
# Deactivating this for now.
2835
# - repo: https://github.com/pycqa/pylint
2936
# rev: v2.17.0

poetry.lock

Lines changed: 21 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,13 @@ pytest-profiling = "^1.7.0"
151151
yara-python = "^4.5.1"
152152
opentelemetry-api = "^1.34.1"
153153
opentelemetry-sdk = "^1.34.1"
154+
pyright = "^1.1.405"
154155

155156

157+
# Directories in which to run Pyright type-checking
158+
[tool.pyright]
159+
include = []
160+
156161
[tool.poetry.group.docs]
157162
optional = true
158163

0 commit comments

Comments
 (0)