File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 3232 python-version : " 3.x"
3333 - run : python3 -m pip install -r tests/requirements_test.txt
3434 - run : pytest --cov=custom_components
35+
36+ pylint :
37+ runs-on : " ubuntu-latest"
38+ name : Run pylint
39+ steps :
40+ - uses : " actions/checkout@v2"
41+ - uses : " actions/setup-python@v1"
42+ with :
43+ python-version : " 3.x"
44+ - run : python3 -m pip install -r tests/requirements_test.txt
45+ - run : pylint custom_components/pyscript/*.py tests/*.py
Original file line number Diff line number Diff line change @@ -47,3 +47,11 @@ repos:
4747 rev : v1.23.0
4848 hooks :
4949 - id : yamllint
50+ - repo : local
51+ hooks :
52+ - id : pylint
53+ name : pylint
54+ args : [-j 0]
55+ entry : venv/bin/pylint
56+ language : system
57+ files : ^(custom_components|tests)/.+\.py$
Original file line number Diff line number Diff line change 11croniter>=0.3.34
2+ mock-open==1.4.0
23pre-commit
34pytest
45pytest-cov>=2.9.0
56pytest-homeassistant
7+ pylint==2.6.0
8+ pylint-strict-informational==0.1
You can’t perform that action at this time.
0 commit comments