Skip to content

Commit

Permalink
Switch from mypy to pyright, like chambercourt
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Jan 12, 2025
1 parent c3ba7aa commit d95224b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: Install non-Python build dependencies (Ubuntu)
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: sudo apt-get -y install gettext
- name: Install pyright
run: npm install -g pyright
- name: Install Python dependencies
run: pip install tox build setuptools chambercourt
- name: Build
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
with:
python-version: "3.12"
- name: Install non-Python build dependencies
run: sudo apt-get -y install gettext
run: |
sudo apt-get -y install gettext
npm install -g pyright
- name: Install Python dependencies
run: pip install tox build chambercourt
- name: Build
Expand Down Expand Up @@ -59,6 +61,8 @@ jobs:
Add-Content $env:GITHUB_PATH "C:\nuget\Gettext.Tools.0.22.4\tools\bin";
nuget install Magick.NET-Q16-AnyCPU -Version 14.3.0 -OutputDirectory c:\nuget;
Add-Content $env:GITHUB_PATH "C:\nuget\Magic.NET-Q16-AnyCPU.14.3.0\tools\bin"
- name: Install pyright
run: npm install -g pyright
- name: Install Python dependencies
run: pip install tox build setuptools chambercourt
- name: Build
Expand Down
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ packages = ["wincoll"]
[tool.setuptools.package-data]
wincoll = ["**/*.png", "**/*.wav", "**/*.tmx", "**/*.tsx", "**/*.ttf", "**/*.mo"]

[tool.mypy]
exclude = ['^dist', '^build']
strict = true

[tool.ruff.lint]
select = ["D", "E", "F", "I", "UP"]
ignore = ["D1", "D401", "E501"]
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
envlist = py312,py313

[testenv]
allowlist_externals =
pyright
deps =
mypy
ruff
setuptools >= 62.3.0
types-setuptools
commands =
mypy .
pyright wincoll
ruff check wincoll

0 comments on commit d95224b

Please sign in to comment.