Skip to content

Commit

Permalink
Extending make.bat and Makefile to support make install (all platfo…
Browse files Browse the repository at this point in the history
…rms) and `make lint` on Windows consistent with others.
  • Loading branch information
sbrugman committed Jul 2, 2020
1 parent e5f2880 commit 49702ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -9,3 +9,6 @@ endif
lint:
isort $(ISORT_ARG) --project popmon --thirdparty histogrammar --thirdparty pybase64 --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=88 -y
black $(BLACK_ARG) .

install:
pip install -e .
16 changes: 14 additions & 2 deletions make.bat
Expand Up @@ -3,8 +3,20 @@
setlocal enabledelayedexpansion

IF "%1%" == "lint" (
isort --project popmon --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=88 -y
black .
IF "%2%" == "check" (
SET ISORT_ARG= --check-only
SET BLACK_ARG= --check
) ELSE (
set ISORT_ARG=
set BLACK_ARG=
)
isort !ISORT_ARG! --project popmon --thirdparty histogrammar --thirdparty pybase64 --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=88 -y
black !BLACK_ARG! .
GOTO end
)

IF "%1%" == "install" (
pip install -e .
GOTO end
)

Expand Down

0 comments on commit 49702ec

Please sign in to comment.