|
@@ -58,8 +58,11 @@ jobs:
|
|
- run: python3 -c 'import sys; sys.exit(sys.version_info < (3, 9))'
|
|
- run: python3 -c 'import sys; sys.exit(sys.version_info < (3, 9))'
|
|
|| pipenv run pylint --load-plugins=pylint_import_requirements "$(cat *.egg-info/top_level.txt)"
|
|
|| pipenv run pylint --load-plugins=pylint_import_requirements "$(cat *.egg-info/top_level.txt)"
|
|
# https://github.com/PyCQA/pylint/issues/352
|
|
# https://github.com/PyCQA/pylint/issues/352
|
|
- - run: pipenv run pylint --disable=duplicate-code tests/*
|
|
+ # disable parse-error due to:
|
|
- - run: pipenv run mypy switchbot_mqtt tests
|
|
+ # > tests/resources/__init__.py:1:0: F0010: error while code parsing: Unable to load file tests/resources/__init__.py:
|
|
|
|
+ # > [Errno 2] No such file or directory: 'tests/resources/__init__.py' (parse-error)
|
|
|
|
+ - run: pipenv run pylint --disable=parse-error tests/*
|
|
|
|
+ - run: pipenv run mypy "$(cat *.egg-info/top_level.txt)" tests
|
|
# >=1.9.0 to detect branch name
|
|
# >=1.9.0 to detect branch name
|
|
# https://github.com/coveralls-clients/coveralls-python/pull/207
|
|
# https://github.com/coveralls-clients/coveralls-python/pull/207
|
|
# https://github.com/coverallsapp/github-action/issues/4#issuecomment-547036866
|
|
# https://github.com/coverallsapp/github-action/issues/4#issuecomment-547036866
|