Skip to content

Commit

Permalink
replaced 'pip' by variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWillner committed Apr 1, 2020
1 parent 5bd6df3 commit c3ab9d5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ run:
@$(PYTHON) $(SRC_CORE)/hello.py -f -n Foo test

test:
@type coverage >/dev/null 2>&1 || (echo "Run 'pip install coverage' first." >&2 ; exit 1)
@type coverage >/dev/null 2>&1 || (echo "Run '$(PIP) install coverage' first." >&2 ; exit 1)
@coverage run --source . -m $(SRC_TEST).test_hello
@coverage report

Expand All @@ -37,17 +37,17 @@ clean:
@rm -rf $(SRC_TEST)/__pycache__

auto-style:
@type autopep8 >/dev/null 2>&1 || (echo "Run 'pip install autopep8' first." >&2 ; exit 1)
@type autopep8 >/dev/null 2>&1 || (echo "Run '$(PIP) install autopep8' first." >&2 ; exit 1)
@autopep8 -i -r $(SRC_CORE)

code-style:
@type pycodestyle >/dev/null 2>&1 || (echo "Run 'pip install pycodestyle' first." >&2 ; exit 1)
@type pycodestyle >/dev/null 2>&1 || (echo "Run '$(PIP) install pycodestyle' first." >&2 ; exit 1)
@pycodestyle --max-line-length=80 $(SRC_CORE)

code-lint:
@type pyflakes >/dev/null 2>&1 || (echo "Run 'pip install pyflakes' first." >&2 ; exit 1)
@type pylint >/dev/null 2>&1 || (echo "Run 'pip install pylint' first." >&2 ; exit 1)
@type flake8 >/dev/null 2>&1 || (echo "Run 'pip install flake8' first." >&2 ; exit 1)
@type pyflakes >/dev/null 2>&1 || (echo "Run '$(PIP) install pyflakes' first." >&2 ; exit 1)
@type pylint >/dev/null 2>&1 || (echo "Run '$(PIP) install pylint' first." >&2 ; exit 1)
@type flake8 >/dev/null 2>&1 || (echo "Run '$(PIP) install flake8' first." >&2 ; exit 1)
@pyflakes $(SRC_CORE)
@pylint $(SRC_CORE)
@flake8 --max-complexity 10 $(SRC_CORE)
Expand All @@ -57,15 +57,15 @@ code-count:
@cloc $(SRC_CORE)

deps-update:
@type pur >/dev/null 2>&1 || (echo "Run 'pip3 install pur' first." >&2 ; exit 1)
@type pur >/dev/null 2>&1 || (echo "Run '$(PIP) install pur' first." >&2 ; exit 1)
@pur -r requirements.txt

deps-install:
@type $(PIP) >/dev/null 2>&1 || (echo "Run 'curl https://bootstrap.pypa.io/get-pip.py|sudo python3' first." >&2 ; exit 1)
@$(PIP) install -r requirements.txt

deps-create:
@type pipreqs >/dev/null 2>&1 || (echo "Run 'pip3 install pipreqs' first." >&2 ; exit 1)
@type pipreqs >/dev/null 2>&1 || (echo "Run '$(PIP) install pipreqs' first." >&2 ; exit 1)
@pipreqs --use-local --force .

feedback:
Expand Down

0 comments on commit c3ab9d5

Please sign in to comment.