Skip to content

Commit

Permalink
fix(build): sort imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Sep 15, 2023
1 parent a71298f commit d8ea005
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions api/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: ci check-venv pip pip-dev lint-check lint-fix test typecheck package package-dist package-upload
.PHONY: ci check-venv pip pip-dev lint-check lint-fix test typecheck package package-dist package-upload style

onnx_env: ## create virtual env
python -v venv onnx_env
Expand Down Expand Up @@ -33,13 +33,17 @@ package-upload:

lint-check:
black --check onnx_web/
isort --check-only --skip __init__.py --filter-files onnx_web
flake8 onnx_web
isort --check-only --skip __init__.py --filter-files onnx_web
isort --check-only --skip __init__.py --filter-files tests

lint-fix:
black onnx_web/
isort --skip __init__.py --filter-files onnx_web
flake8 onnx_web
isort --skip __init__.py --filter-files onnx_web
isort --skip __init__.py --filter-files tests

style: lint-fix

typecheck:
mypy onnx_web

0 comments on commit d8ea005

Please sign in to comment.