fix(build): sort imports in tests
This commit is contained in:
parent
a71298ff33
commit
d8ea00582e
10
api/Makefile
10
api/Makefile
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue