mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-08 19:34:12 +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
|
sha: d79d3113a991229b8f9d329e8e97b615abad91ba
|
||||||
hooks:
|
hooks:
|
||||||
- id: yapf
|
- id: yapf
|
||||||
args:
|
files: ^telegram/.*\.py$
|
||||||
- -i
|
|
||||||
- repo: git://github.com/pre-commit/pre-commit-hooks
|
- repo: git://github.com/pre-commit/pre-commit-hooks
|
||||||
sha: adbb569fe9a64ad9bce3b53a77f1bc39ef31f682
|
sha: adbb569fe9a64ad9bce3b53a77f1bc39ef31f682
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
args:
|
files: ^telegram/.*\.py$
|
||||||
- telegram
|
|
||||||
- repo: git://github.com/pre-commit/mirrors-pylint
|
- repo: git://github.com/pre-commit/mirrors-pylint
|
||||||
sha: 4de6c8dfadef1a271a814561ce05b8bc1c446d22
|
sha: 4de6c8dfadef1a271a814561ce05b8bc1c446d22
|
||||||
hooks:
|
hooks:
|
||||||
- id: pylint
|
- id: pylint
|
||||||
|
files: ^telegram/.*\.py$
|
||||||
args:
|
args:
|
||||||
- --errors-only
|
- --errors-only
|
||||||
- --disable=no-name-in-module,import-error
|
- --disable=no-name-in-module,import-error
|
||||||
- telegram
|
|
||||||
|
|
|
@ -13,8 +13,6 @@ install:
|
||||||
- pip install -r requirements-dev.txt
|
- pip install -r requirements-dev.txt
|
||||||
script:
|
script:
|
||||||
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/
|
- 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'
|
- 'if [ $TRAVIS_PYTHON_VERSION != 2.6 ] && [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then pre-commit run --all-files; fi'
|
||||||
- flake8 telegram
|
|
||||||
- 'if [ $TRAVIS_PYTHON_VERSION != 2.6 ]; then pylint -E telegram --disable=no-name-in-module,import-error; fi'
|
|
||||||
after_success:
|
after_success:
|
||||||
coveralls
|
coveralls
|
||||||
|
|
Loading…
Reference in a new issue