You've already forked httpie-cli
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:
committed by
GitHub
parent
8d35a12d27
commit
350f973f70
15
Makefile
15
Makefile
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user