Skip to content

Commit fee9190

Browse files
committed
Fix mypy requirements and add to testing
1 parent 051fd80 commit fee9190

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

‎.github/build_requirements.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ toml
55
autopep8
66
pytest>=6.0
77
pytest-cov>=2.0
8+
mypy>=1.4.0

‎.github/stubtest-ignore.txt‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
# Skip examples, window.providers and physics
1+
# Skip __main__, examples, window.providers and physics
22
pyunity\.(examples|window\.providers|physics)\..*
3+
pyunity\.__main__
34

45
# Skip __all__ entries not found in packages
5-
pyunity\.([A-Z]\w+|abstract.*)
6+
# pyunity\.([A-Z]\w+|abstract.*)
67

78
# Skip duplicate errors from pyunity.Class and pyunity.mod.Class
89
# Logger, Window and SceneManager should be checked by their
910
# lowercase module names
10-
pyunity\.[A-Z]\w+\..*
11+
# pyunity\.[A-Z]\w+\..*
1112

1213
# Skip TypeVars and type aliases
1314
# (AT asset, CT component, KT key, VT value)
1415
# pyunity.*\.([ACKV]?T|saverType|TWRAP)
1516

16-
# Skip __main__ and __all__
17-
pyunity\.(.*\.)?__(main|all)__
17+
# Skip __all__
18+
# pyunity\.(.*\.)?__all__

‎.github/workflows/coverage.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
full: 1
2929
PYUNITY_INTERACTIVE: 0
3030
run: pytest
31+
- name: Run mypy
32+
run: |
33+
mypy -p pyunity
3134
- name: Generate report
3235
if: ${{ matrix.python-version == '3.10' }}
3336
run: coverage xml

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ dev = [
7171
"autopep8",
7272
"pytest>=6.0",
7373
"pytest-cov>=2.0",
74-
"mypy>=1.3.0",
74+
"mypy>=1.4.0",
7575
"importlib-metadata",
7676
"wheel>=0.29.0",
7777
"cython>=3.0.0a8",

0 commit comments

Comments
 (0)