mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Parallelize pylint everywhere (#28149)
* Run 2 pylint jobs by default * Run pylint with autodetected number of jobs in Travis Gives a ~25% speedup there at the moment.
This commit is contained in:
parent
7cb6607b1f
commit
6a731a68cd
@ -19,7 +19,7 @@ matrix:
|
|||||||
- python: "3.6.1"
|
- python: "3.6.1"
|
||||||
env: TOXENV=lint
|
env: TOXENV=lint
|
||||||
- python: "3.6.1"
|
- python: "3.6.1"
|
||||||
env: TOXENV=pylint
|
env: TOXENV=pylint PYLINT_ARGS=--jobs=0
|
||||||
- python: "3.6.1"
|
- python: "3.6.1"
|
||||||
env: TOXENV=typing
|
env: TOXENV=typing
|
||||||
- python: "3.6.1"
|
- python: "3.6.1"
|
||||||
|
@ -167,7 +167,7 @@ stages:
|
|||||||
displayName: 'Install Home Assistant'
|
displayName: 'Install Home Assistant'
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pylint -j 2 homeassistant
|
pylint homeassistant
|
||||||
displayName: 'Run pylint'
|
displayName: 'Run pylint'
|
||||||
- job: 'Mypy'
|
- job: 'Mypy'
|
||||||
pool:
|
pool:
|
||||||
|
3
pylintrc
3
pylintrc
@ -1,5 +1,8 @@
|
|||||||
[MASTER]
|
[MASTER]
|
||||||
ignore=tests
|
ignore=tests
|
||||||
|
# Use a conservative default here; 2 should speed up most setups and not hurt
|
||||||
|
# any too bad. Override on command line as appropriate.
|
||||||
|
jobs=2
|
||||||
|
|
||||||
[BASIC]
|
[BASIC]
|
||||||
good-names=id,i,j,k,ex,Run,_,fp
|
good-names=id,i,j,k,ex,Run,_,fp
|
||||||
|
2
tox.ini
2
tox.ini
@ -26,7 +26,7 @@ deps =
|
|||||||
-r{toxinidir}/requirements_test.txt
|
-r{toxinidir}/requirements_test.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||||
commands =
|
commands =
|
||||||
pylint {posargs} homeassistant
|
pylint {env:PYLINT_ARGS} {posargs} homeassistant
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
deps =
|
deps =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user