diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7253585..e5fc54cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,7 @@ repos: hooks: - id: isort name: isort (python) + args: ["--profile", "black", "--filter-files"] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 diff --git a/pyproject.toml b/pyproject.toml index 17c11e77..63a50fac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,6 +128,9 @@ warn_unused_ignores = false [tool.black] line-length = 120 +[tool.isort] +profile = "black" + [tool.pytest.ini_options] addopts = "--strict-markers" markers = [