From 5d7a6217e944791833e289ddff5ac8aef4cbfbda Mon Sep 17 00:00:00 2001 From: maxgfr <25312957+maxgfr@users.noreply.github.com> Date: Fri, 13 Dec 2024 19:19:37 +0100 Subject: [PATCH] feat(pre-commit): add pyright to config --- .pre-commit-config.yaml | 4 ++++ .secrets.baseline | 2 +- README.md | 1 + pyproject.toml | 3 ++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a4862d..252b814 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,6 +20,10 @@ repos: # Run the formatter. - id: ruff-format types_or: [python, pyi] + - repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.389 + hooks: + - id: pyright - repo: https://github.com/PyCQA/bandit rev: 1.8.0 hooks: diff --git a/.secrets.baseline b/.secrets.baseline index 7e3a27d..fd19ba2 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -149,5 +149,5 @@ } ] }, - "generated_at": "2024-12-10T17:38:23Z" + "generated_at": "2024-12-13T11:10:51Z" } diff --git a/README.md b/README.md index 749dc8e..3013686 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ ```sh make install +poetry shell # to activate the virtual environment pre-commit run --all-files poetry run start # or poetry run python -m srdt_analysis ruff check --fix diff --git a/pyproject.toml b/pyproject.toml index 82cec65..7f790fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,4 +52,5 @@ docstring-code-line-length = "dynamic" [tool.pyright] include = ["srdt_analysis"] -exclude = ["**/__pycache__"] \ No newline at end of file +exclude = ["**/__pycache__"] +reportMissingImports = "warning" \ No newline at end of file