chore: move isort profile to pyproject

so it also active when running isort manually or from Sublime
This commit is contained in:
Yohan Boniface 2024-12-10 17:53:29 +01:00
parent 73e7f60cdf
commit 09a6c0532d
2 changed files with 4 additions and 2 deletions

View file

@ -13,14 +13,14 @@ develop: ## Install the test and dev dependencies
.PHONY: format .PHONY: format
format: ## Format the code and templates files format: ## Format the code and templates files
-djlint umap/templates --reformat -djlint umap/templates --reformat
-isort --profile black umap/ -isort umap/
-ruff format --target-version=py310 umap/ -ruff format --target-version=py310 umap/
.PHONY: lint .PHONY: lint
lint: ## Lint the code and template files lint: ## Lint the code and template files
npx eslint umap/static/umap/js/ npx eslint umap/static/umap/js/
djlint umap/templates --lint djlint umap/templates --lint
isort --check --profile black umap/ isort --check umap/
ruff format --check --target-version=py310 umap/ ruff format --check --target-version=py310 umap/
vermin --no-tips --violations -t=3.10- umap/ vermin --no-tips --violations -t=3.10- umap/

View file

@ -100,3 +100,5 @@ format_css=true
blank_line_after_tag="load,extends" blank_line_after_tag="load,extends"
line_break_after_multiline_tag=true line_break_after_multiline_tag=true
[tool.isort]
profile = "black"