From 4976ae4e950be14de5a5cc9fbcaa0a6db3b5a3ac Mon Sep 17 00:00:00 2001 From: Alon Maor <48641682+AlonMaor14@users.noreply.github.com> Date: Sun, 25 Dec 2022 18:35:21 +0200 Subject: [PATCH] [Makefile] Isort ignore venvs (#2809) --- Makefile | 8 ++++---- pyproject.toml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 56fa1a4bd7..0bb671a814 100644 --- a/Makefile +++ b/Makefile @@ -559,8 +559,8 @@ 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 @@ -568,8 +568,8 @@ 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 diff --git a/pyproject.toml b/pyproject.toml index aa7e7666d4..58ae98b8e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,4 @@ [tool.isort] profile = "black" multi_line_output = 3 +extend_skip_glob = ["*venv*"]