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.pull/26656/head
parent
7cb6607b1f
commit
6a731a68cd
|
@ -19,7 +19,7 @@ matrix:
|
|||
- python: "3.6.1"
|
||||
env: TOXENV=lint
|
||||
- python: "3.6.1"
|
||||
env: TOXENV=pylint
|
||||
env: TOXENV=pylint PYLINT_ARGS=--jobs=0
|
||||
- python: "3.6.1"
|
||||
env: TOXENV=typing
|
||||
- python: "3.6.1"
|
||||
|
|
|
@ -167,7 +167,7 @@ stages:
|
|||
displayName: 'Install Home Assistant'
|
||||
- script: |
|
||||
. venv/bin/activate
|
||||
pylint -j 2 homeassistant
|
||||
pylint homeassistant
|
||||
displayName: 'Run pylint'
|
||||
- job: 'Mypy'
|
||||
pool:
|
||||
|
|
3
pylintrc
3
pylintrc
|
@ -1,5 +1,8 @@
|
|||
[MASTER]
|
||||
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]
|
||||
good-names=id,i,j,k,ex,Run,_,fp
|
||||
|
|
Loading…
Reference in New Issue