Skip to content

Commit 96fefd1

Browse files
committed
Tests: Enable pylint and flake8
1 parent 4d8d10c commit 96fefd1

File tree

5 files changed

+403
-3
lines changed

5 files changed

+403
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ python:
1414
install:
1515
- pip install -U pip
1616
- pip install -r requirements.txt
17+
- pip install -r requirements-ci.txt
1718

18-
#before_script:
19-
# - "if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 --config=config/flake8rc asm_collect.py asmtest tests; fi"
20-
# - "if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then pylint --rcfile=config/pylintrc asm_collect.py asmtest tests; fi"
19+
before_script:
20+
- "flake8 --config=config/flake8rc *.py commands index_transform gadgets/standard_revisions_tests/*.py tests"
21+
- "pylint --rcfile=config/pylintrc *.py commands index_transform gadgets/standard_revisions_tests/*.py tests"
2122

2223
script:
2324
- "python -m unittest discover"

config/flake8rc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
3+
show-source = yes
4+
statistics = yes
5+
count = yes
6+
max-line-length = 80

0 commit comments

Comments
 (0)