Skip to content

Commit

Permalink
Replace mypy with pyright
Browse files Browse the repository at this point in the history
Signed-off-by: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  • Loading branch information
thombashi committed Jan 1, 2025
1 parent d540948 commit dbf49e6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true

[tool.pyright]
exclude = [
"**/node_modules",
"**/__pycache__",
".tox",
".venv",
"_build",
"_sandbox",
"build",
"dist"
]
pythonVersion = "3.9"

[tool.pytest.ini_options]
testpaths = [
"test",
Expand Down
14 changes: 11 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,27 @@ commands =
isort .

[testenv:lint]
skip_install = true
extras =
all
deps =
black[jupyter]>=24.1
codespell>=2
mypy>=1
ipykernel
; mypy>=1
pylama>=8.4.1
pyright>=1.1
pytest>=6
tablib
tblfaker
types-PyYAML
types-simplejson
types-toml
releasecmd
commands =
black --check setup.py docs examples test pytablewriter
codespell -q2 pytablewriter examples docs/pages
mypy pytablewriter examples setup.py
pyright pytablewriter examples setup.py
; mypy pytablewriter examples setup.py
pylama pytablewriter examples setup.py

[testenv:readme]
Expand Down

0 comments on commit dbf49e6

Please sign in to comment.