File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 32
32
python-version : " 3.x"
33
33
- run : python3 -m pip install -r tests/requirements_test.txt
34
34
- 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:
47
47
rev : v1.23.0
48
48
hooks :
49
49
- 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 1
1
croniter>=0.3.34
2
+ mock-open==1.4.0
2
3
pre-commit
3
4
pytest
4
5
pytest-cov>=2.9.0
5
6
pytest-homeassistant
7
+ pylint==2.6.0
8
+ pylint-strict-informational==0.1
You can’t perform that action at this time.
0 commit comments