diff --git a/.travis.yml b/.travis.yml index ee1b14d7f..94edf325e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/pylama.ini b/pylama.ini new file mode 100644 index 000000000..39025746e --- /dev/null +++ b/pylama.ini @@ -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 diff --git a/requirements-dev.txt b/requirements-dev.txt index 76f6b62de..24dc5b667 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,3 +2,4 @@ pytest xmltodict termcolor antlr4-python3-runtime +pylama diff --git a/tools/pytest.sh b/tools/pytest.sh index 694df06f3..893947b32 100755 --- a/tools/pytest.sh +++ b/tools/pytest.sh @@ -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";;