Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit043e15f

Browse files
committed
ci: check types with mypy
This will result in _partial_ type checking of the type annotations byusing mypy. Keep in mind though that mypy is performing _static_analysis in a _dynamic_ language so it can only partially check forcorrectness.Some other tool(s) will be needed to have more complete type checking atruntime. E.g. [typeguard].[typeguard]:https://pypi.org/project/typeguard/
1 parent76ba092 commit043e15f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
pip install flake8
4848
# stop the build if there are Python syntax errors or undefined names
4949
flake8 --ignore=W293,E265,E266,W503,W504,E731 --count --show-source --statistics
50+
-name:Check types with mypy
51+
run:|
52+
set -x
53+
pip install tox
54+
tox -e type
5055
-name:Test with nose
5156
run:|
5257
set -x

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp