From f52666eec9cf02b739c7f36c1c89c4f60e39a2f3 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Tue, 21 May 2024 20:09:43 +0200 Subject: [PATCH] Added CI for isort --- .github/workflows/isort.yml | 10 ++++++++++ pyproject.toml | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/isort.yml diff --git a/.github/workflows/isort.yml b/.github/workflows/isort.yml new file mode 100644 index 0000000..b701d21 --- /dev/null +++ b/.github/workflows/isort.yml @@ -0,0 +1,10 @@ +name: Isort + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: isort/isort-action@v1 diff --git a/pyproject.toml b/pyproject.toml index ce943ed..acc02a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,5 +25,9 @@ testproject = [ "time-machine", ] dev = [ - "black<24.5.0" + "black<24.5.0", + "isort", ] + +[tool.isort] +profile = "black"