mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
Replace individual checks to pre-commit run --all-files in Travis
This commit is contained in:
parent
eb303903ef
commit
5a0696b181
2 changed files with 4 additions and 8 deletions
|
@ -2,19 +2,17 @@
|
|||
sha: d79d3113a991229b8f9d329e8e97b615abad91ba
|
||||
hooks:
|
||||
- id: yapf
|
||||
args:
|
||||
- -i
|
||||
files: ^telegram/.*\.py$
|
||||
- repo: git://github.com/pre-commit/pre-commit-hooks
|
||||
sha: adbb569fe9a64ad9bce3b53a77f1bc39ef31f682
|
||||
hooks:
|
||||
- id: flake8
|
||||
args:
|
||||
- telegram
|
||||
files: ^telegram/.*\.py$
|
||||
- repo: git://github.com/pre-commit/mirrors-pylint
|
||||
sha: 4de6c8dfadef1a271a814561ce05b8bc1c446d22
|
||||
hooks:
|
||||
- id: pylint
|
||||
files: ^telegram/.*\.py$
|
||||
args:
|
||||
- --errors-only
|
||||
- --disable=no-name-in-module,import-error
|
||||
- telegram
|
||||
|
|
|
@ -13,8 +13,6 @@ install:
|
|||
- pip install -r requirements-dev.txt
|
||||
script:
|
||||
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/
|
||||
- 'if [ $TRAVIS_PYTHON_VERSION != 2.6 ] && [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then yapf -r telegram; fi'
|
||||
- flake8 telegram
|
||||
- 'if [ $TRAVIS_PYTHON_VERSION != 2.6 ]; then pylint -E telegram --disable=no-name-in-module,import-error; fi'
|
||||
- 'if [ $TRAVIS_PYTHON_VERSION != 2.6 ] && [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then pre-commit run --all-files; fi'
|
||||
after_success:
|
||||
coveralls
|
||||
|
|
Loading…
Reference in a new issue