From a66c0c7bcd1be18d0e69cc9012243b68f81a833c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maksymilian=20P=C5=82ywaczyk?= Date: Mon, 27 Nov 2023 17:30:33 +0100 Subject: [PATCH] Resolve issue with argument in pyproject.toml for isort --- .github/workflows/main.yml | 4 ++-- .pre-commit-config.yaml | 2 -- pyproject.toml | 6 ++++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 18003de..2ca3e6a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: - name: python-isort uses: isort/isort-action@v1 with: - isort-version: 5.10.1 - + isort-version: 5.10.1 + - name: Black Check uses: jpetrucciani/black-check@22.10.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eeeda53..33bb3f8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,8 +19,6 @@ repos: rev: 5.12.0 hooks: - id: isort - args: ["--profile", "black", "--filter-files"] - - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. diff --git a/pyproject.toml b/pyproject.toml index 46aee21..998c07e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,9 @@ +[tool.isort] +profile="black" +src_paths=["src", "tests"] + + + [tool.black] line-length = 88 include = '\.pyi?$'