Skip to content

Commit

Permalink
[Makefile] Isort ignore venvs (mlrun#2809)
Browse files Browse the repository at this point in the history
  • Loading branch information
alonmr authored Dec 25, 2022
1 parent 621b7e1 commit 4976ae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -559,17 +559,17 @@ html-docs-dockerized: build-test ## Build html docs dockerized
.PHONY: fmt
fmt: ## Format the code (using black and isort)
@echo "Running black fmt..."
python -m black . --exclude=venv*
python -m isort . --skip-glob=venv*
python -m black .
python -m isort .

.PHONY: lint
lint: flake8 fmt-check ## Run lint on the code

.PHONY: fmt-check
fmt-check: ## Format and check the code (using black)
@echo "Running black+isort fmt check..."
python -m black --check --diff . --exclude=venv*
python -m isort --check --diff . --skip-glob=venv*
python -m black --check --diff .
python -m isort --check --diff .

.PHONY: flake8
flake8: ## Run flake8 lint
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[tool.isort]
profile = "black"
multi_line_output = 3
extend_skip_glob = ["*venv*"]

0 comments on commit 4976ae4

Please sign in to comment.