1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Switch from pycodestyle to flake8 for code style checks (#1083)

This commit is contained in:
Mickaël Schoentgen
2021-06-02 11:06:46 +02:00
committed by GitHub
parent 8d35a12d27
commit 350f973f70
6 changed files with 19 additions and 21 deletions

View File

@@ -88,7 +88,7 @@ test-cover: test
# test-all is meant to test everything — even this Makefile
test-all: clean install test test-dist pycodestyle
test-all: clean install test test-dist codestyle
@echo
@@ -116,10 +116,15 @@ test-bdist-wheel: clean venv
twine-check:
twine check dist/*
pycodestyle:
@echo $(H1)Running pycodestyle$(H1END)
@[ -f $(VENV_BIN)/pycodestyle ] || $(VENV_PIP) install pycodestyle
$(VENV_BIN)/pycodestyle httpie/ tests/ extras/ *.py
# Kept for convenience, "make codestyle" is preferred though
pycodestyle: codestyle
codestyle:
@echo $(H1)Running flake8$(H1END)
@[ -f $(VENV_BIN)/flake8 ] || $(VENV_PIP) install --upgrade -r $(REQUIREMENTS)
$(VENV_BIN)/flake8 httpie/ tests/ extras/ *.py
@echo