X Tutup
Skip to content

Commit 5a0696b

Browse files
committed
Replace individual checks to pre-commit run --all-files in Travis
1 parent eb30390 commit 5a0696b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22
sha: d79d3113a991229b8f9d329e8e97b615abad91ba
33
hooks:
44
- id: yapf
5-
args:
6-
- -i
5+
files: ^telegram/.*\.py$
76
- repo: git://github.com/pre-commit/pre-commit-hooks
87
sha: adbb569fe9a64ad9bce3b53a77f1bc39ef31f682
98
hooks:
109
- id: flake8
11-
args:
12-
- telegram
10+
files: ^telegram/.*\.py$
1311
- repo: git://github.com/pre-commit/mirrors-pylint
1412
sha: 4de6c8dfadef1a271a814561ce05b8bc1c446d22
1513
hooks:
1614
- id: pylint
15+
files: ^telegram/.*\.py$
1716
args:
1817
- --errors-only
1918
- --disable=no-name-in-module,import-error
20-
- telegram

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ install:
1313
- pip install -r requirements-dev.txt
1414
script:
1515
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/
16-
- 'if [ $TRAVIS_PYTHON_VERSION != 2.6 ] && [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then yapf -r telegram; fi'
17-
- flake8 telegram
18-
- 'if [ $TRAVIS_PYTHON_VERSION != 2.6 ]; then pylint -E telegram --disable=no-name-in-module,import-error; fi'
16+
- 'if [ $TRAVIS_PYTHON_VERSION != 2.6 ] && [ $TRAVIS_PYTHON_VERSION != 3.3 ] && [ $TRAVIS_PYTHON_VERSION != pypy3 ]; then pre-commit run --all-files; fi'
1917
after_success:
2018
coveralls

0 commit comments

Comments
 (0)
X Tutup