|
@@ -34,12 +34,9 @@ jobs:
|
|
pipenv install --dev importlib-metadata;
|
|
pipenv install --dev importlib-metadata;
|
|
fi
|
|
fi
|
|
- run: pipenv graph
|
|
- run: pipenv graph
|
|
- - run: pipenv run pylint switchbot_mqtt
|
|
+ - run: pipenv run pylint --load-plugins=pylint_import_requirements switchbot_mqtt
|
|
# https://github.com/PyCQA/pylint/issues/352
|
|
# https://github.com/PyCQA/pylint/issues/352
|
|
- # disable parse-error due to:
|
|
+ - run: pipenv run pylint 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=missing-requirement --disable=parse-error tests/*
|
|
|
|
- run: pipenv run mypy switchbot_mqtt tests
|
|
- run: pipenv run mypy switchbot_mqtt tests
|
|
- run: pipenv run pytest --cov=switchbot_mqtt --cov-report=term-missing --cov-fail-under=100
|
|
- run: pipenv run pytest --cov=switchbot_mqtt --cov-report=term-missing --cov-fail-under=100
|
|
- run: pipenv run black --check .
|
|
- run: pipenv run black --check .
|