Skip to content

Commit

Permalink
Fix pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Oct 4, 2023
1 parent 7b3213f commit c3fb9d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ whitelist-regex = ["test_.*"]

[tool.pyright]
ignore = ["conftest.py", "docs", "tests"]
disableBytesTypePromotions = true


[tool.mypy]
Expand Down
11 changes: 1 addition & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,8 @@ commands = pre-commit run --all-files


[testenv:pyright]
# Install and configure node and pyright
# Use nodeenv to configure node in the running tox virtual environment
# Seeing errors using "nodeenv -p"
# Use npm install -g to install "globally" into the virtual environment
# Does not run by default locally because it's slow.
deps = nodeenv
deps = pyright
extras = typing
commands_pre =
nodeenv --prebuilt --node=lts --force {envdir}
npm install -g --no-package-lock --no-save pyright
pyright --version
commands = pyright tests/typing src


Expand Down

0 comments on commit c3fb9d8

Please sign in to comment.