Commit f9a1c746 authored by Gmodena's avatar Gmodena
Browse files

Fix flake8 invocation

parent f9e6d11c
...@@ -4,8 +4,8 @@ spark_home := spark-${spark_version}-bin-hadoop${hadoop_version} ...@@ -4,8 +4,8 @@ spark_home := spark-${spark_version}-bin-hadoop${hadoop_version}
spark_tgz_url := http://apachemirror.wuchna.com/spark/spark-${spark_version}/${spark_home}.tgz spark_tgz_url := http://apachemirror.wuchna.com/spark/spark-${spark_version}/${spark_home}.tgz
venv: requirements.txt venv: requirements.txt
test -d venv || python -m venv venv test -d venv || python3 -m venv venv
. venv/bin/activate; pip install -Ur requirements.txt; . venv/bin/activate; pip3 install -Ur requirements.txt;
install_spark: install_spark:
test -d ${spark_home} || (wget ${spark_tgz_url}; tar -xzvf ${spark_home}.tgz) test -d ${spark_home} || (wget ${spark_tgz_url}; tar -xzvf ${spark_home}.tgz)
...@@ -14,11 +14,10 @@ clean_spark: ...@@ -14,11 +14,10 @@ clean_spark:
rm -r ${spark_home}; rm -rf ${spark_home}.tgz rm -r ${spark_home}; rm -rf ${spark_home}.tgz
flake8: venv flake8: venv
. venv/bin/activate
# stop the build if there are Python syntax errors or undefined names in *.py file # stop the build if there are Python syntax errors or undefined names in *.py file
flake8 *.py etl/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics . venv/bin/activate; flake8 *.py etl/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 *.py etl/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics . venv/bin/activate; flake8 *.py etl/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
test: venv test: venv
. venv/bin/activate; pytest --cov etl tests/ . venv/bin/activate; pytest --cov etl tests/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment