From 02249d03d086e71a589733280a2f5e32990f72b1 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 27 Oct 2021 15:08:58 -0700 Subject: update lint, fmt, make settings --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b790d54..dbccc7e 100644 --- a/Makefile +++ b/Makefile @@ -16,12 +16,17 @@ dep: ## Install dependencies using pipenv .PHONY: lint lint: ## Run lints (eg, flake8, mypy) pipenv run flake8 fatcat_scholar/ tests/ --exit-zero + pipenv run isort -q -c fatcat_scholar/ tests/ || true pipenv run mypy fatcat_scholar/ tests/ --ignore-missing-imports - #pipenv run pytype fatcat_scholar/ + +.PHONY: pytype +pytype: ## Run slow pytype type check (not part of dev deps) + pipenv run pytype fatcat_scholar/ .PHONY: fmt fmt: ## Run code formating on all source code - pipenv run black fatcat_scholar/ tests/ + pipenv run isort --atomic fatcat_scholar/ tests/ + pipenv run black --line-length 88 fatcat_scholar/ tests/ .PHONY: test test: ## Run all tests and lints -- cgit v1.2.3