Skip to content

Commit

Permalink
Enable pylama on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed May 2, 2020
1 parent b791953 commit e7cfe03
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ before_script:
# compile osm pbf parser
- cd modules/osm_pbf_parser && make && cd ../../
env:
- TEST_SUITE=lint
- TEST_SUITE=sax
- TEST_SUITE=merge
- TEST_SUITE=other
Expand Down
3 changes: 3 additions & 0 deletions pylama.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pylama]
skip = venv/*,analysers/disabled/*,mapcss/generated/*,mapcss/mapcss/*,plugins/Josm_*
ignore = E501,E266,E231,E306,E302,E202,E265,E305,E713,E201,E117,E261,E127,W391,E701,E303,C901,E301,E402,E122,E711,E221,E124,E128,E251,E129,E401,E712,E741,E0602,E731,E111,E114,E722
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pytest
xmltodict
termcolor
antlr4-python3-runtime
pylama
1 change: 1 addition & 0 deletions tools/pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ else
fi

case $TEST_SUITE in
lint) pylama; exit $?;;
sax) PYTEST_PARAM="analysers/analyser_sax.py";;
merge) PYTEST_PARAM="analysers/Analyser_Merge.py";;
other) PYTEST_PARAM="--ignore=analysers/analyser_sax.py --ignore=analysers/Analyser_Merge.py";;
Expand Down

0 comments on commit e7cfe03

Please sign in to comment.