From 0923520b20ab8519fb4356023eeed5a9794b17d3 Mon Sep 17 00:00:00 2001 From: Joshua Fehler Date: Sun, 21 Jul 2024 10:44:27 -0400 Subject: [PATCH] Add pyright to lint --- pyrightconfig.json | 3 +++ requirements/lint.txt | 2 ++ tox.ini | 8 +++++--- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 pyrightconfig.json create mode 100644 requirements/lint.txt diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 0000000..68aa1ba --- /dev/null +++ b/pyrightconfig.json @@ -0,0 +1,3 @@ +{ + "stubPath": "mock_renpy" +} diff --git a/requirements/lint.txt b/requirements/lint.txt new file mode 100644 index 0000000..7af7b9f --- /dev/null +++ b/requirements/lint.txt @@ -0,0 +1,2 @@ +pyright +ruff diff --git a/tox.ini b/tox.ini index 60387a2..c1f7760 100644 --- a/tox.ini +++ b/tox.ini @@ -16,13 +16,15 @@ deps = -r requirements/tests.txt commands = py.test -s -vv --cov-report lcov --cov=encyclopaedia tests -# Code style [testenv:lint] basepython=py39 skip_install = true -deps = ruff +deps = -r requirements/lint.txt changedir = . -commands = ruff check encyclopaedia scripts tests +commands = + ruff check encyclopaedia scripts tests + pyright encyclopaedia + # Build local copy of docs [testenv:build_docs_html]