From 09a6c0532d78d46b6e51eb03f83519f24150570d Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 10 Dec 2024 17:53:29 +0100 Subject: [PATCH] chore: move isort profile to pyproject so it also active when running isort manually or from Sublime --- Makefile | 4 ++-- pyproject.toml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90e97af6..27143e33 100644 --- a/Makefile +++ b/Makefile @@ -13,14 +13,14 @@ develop: ## Install the test and dev dependencies .PHONY: format format: ## Format the code and templates files -djlint umap/templates --reformat - -isort --profile black umap/ + -isort umap/ -ruff format --target-version=py310 umap/ .PHONY: lint lint: ## Lint the code and template files npx eslint umap/static/umap/js/ djlint umap/templates --lint - isort --check --profile black umap/ + isort --check umap/ ruff format --check --target-version=py310 umap/ vermin --no-tips --violations -t=3.10- umap/ diff --git a/pyproject.toml b/pyproject.toml index ac26cabc..aadd4d43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,3 +100,5 @@ format_css=true blank_line_after_tag="load,extends" line_break_after_multiline_tag=true +[tool.isort] +profile = "black"