Skip to content

Commit

Permalink
pyproject.toml: fix our mypy setup
Browse files Browse the repository at this point in the history
This allows proper typechecking in testcases via LSP servers.
  • Loading branch information
allisonkarlitskaya authored and jelly committed Jun 7, 2024
1 parent 78e8502 commit 901b3bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[tool.mypy]
follow_imports = 'silent' # https://github.com/python-lsp/pylsp-mypy/issues/81
scripts_are_modules = true # allow checking all scripts in one invocation
explicit_package_bases = true
mypy_path = 'test/common:bots'
exclude = [
"bots"
]

[tool.ruff]
exclude = [
".git/",
Expand Down

0 comments on commit 901b3bc

Please sign in to comment.