From 1e966b17da07b67b012a119a1b0893792879389c Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Sat, 16 Sep 2023 03:24:14 -0700 Subject: [PATCH] Fix ci --- .github/workflows/test.yaml | 5 +---- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 65c747a2..8661bacf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -27,11 +27,8 @@ jobs: - run: poetry install --no-interaction --no-root - - run: cd /home/runner/work/hknweb && ls && ls hknweb - - name: Run formatting check - run: | - cd /home/runner/work/hknweb && poetry run black . --check --exclude=.venv + run: poetry run black . --check - name: Run unit tests run: | diff --git a/pyproject.toml b/pyproject.toml index be0c011c..c7ee9615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.black] -exclude = '/(.*migrations)/' +extend-exclude = '(.*migrations)/' [tool.coverage.run] source = ["."]