Skip to content

Commit

Permalink
Add pyright to lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Jul 21, 2024
1 parent 4585665 commit 0923520
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"stubPath": "mock_renpy"
}
2 changes: 2 additions & 0 deletions requirements/lint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pyright
ruff
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0923520

Please sign in to comment.