From 5a0696b1811c3eec76893b74bfdc0b90e402262d Mon Sep 17 00:00:00 2001 From: leandrotoledo Date: Sun, 22 May 2016 13:12:05 -0300 Subject: [PATCH] Replace individual checks to pre-commit run --all-files in Travis --- .pre-commit-config.yaml | 8 +++----- .travis.yml | 4 +--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 75b9e9307..61c75154f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/.travis.yml b/.travis.yml index 5fe9fef59..5e0a6dcb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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