Run isort with black profile to avoid conflicts between the two

This commit is contained in:
Debanjum Singh Solanky 2023-11-21 12:48:12 -08:00
parent 244b76ffed
commit 19e042037a
2 changed files with 4 additions and 0 deletions

View file

@ -9,6 +9,7 @@ repos:
hooks: hooks:
- id: isort - id: isort
name: isort (python) name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.4.0

View file

@ -128,6 +128,9 @@ warn_unused_ignores = false
[tool.black] [tool.black]
line-length = 120 line-length = 120
[tool.isort]
profile = "black"
[tool.pytest.ini_options] [tool.pytest.ini_options]
addopts = "--strict-markers" addopts = "--strict-markers"
markers = [ markers = [