From d125d059011390583de1fa9ffbc99365746617ac Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 12 Dec 2024 20:02:27 +0100 Subject: [PATCH 1/4] GitHub Actions: Run pre-commit --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 17b3385..953c987 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,14 @@ on: - main pull_request: jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - uses: pre-commit/action@v3.0.1 test: runs-on: ubuntu-latest steps: From 9357cd0269a21c5bc443fe17e4b09c975d90cd0e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 12 Dec 2024 22:08:33 +0100 Subject: [PATCH 2/4] Update test_endpointer.py --- py/test/test_endpointer.py | 1 - 1 file changed, 1 deletion(-) diff --git a/py/test/test_endpointer.py b/py/test/test_endpointer.py index fb3d60d..b17c65a 100644 --- a/py/test/test_endpointer.py +++ b/py/test/test_endpointer.py @@ -4,7 +4,6 @@ import unittest import numpy as np - from soundswallower import Endpointer DATADIR = os.path.join(os.path.dirname(__file__), "..", "..", "tests", "data") From 494c4b8f6f5b2e6ab229591fa057f8632e69955d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 12 Dec 2024 22:43:38 +0100 Subject: [PATCH 3/4] pip install --editable . --- .github/workflows/tests.yml | 1 + py/test/test_endpointer.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 953c987..cc5e94c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,6 +12,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.x + - run: pip install --editable . - uses: pre-commit/action@v3.0.1 test: runs-on: ubuntu-latest diff --git a/py/test/test_endpointer.py b/py/test/test_endpointer.py index b17c65a..fb3d60d 100644 --- a/py/test/test_endpointer.py +++ b/py/test/test_endpointer.py @@ -4,6 +4,7 @@ import unittest import numpy as np + from soundswallower import Endpointer DATADIR = os.path.join(os.path.dirname(__file__), "..", "..", "tests", "data") From ee5b632964123297ffa235480b5eac1411c9e64d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 12 Dec 2024 23:02:40 +0100 Subject: [PATCH 4/4] tool.isort.known_first_party = ["soundswallower"] --- .github/workflows/tests.yml | 1 - pyproject.toml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cc5e94c..953c987 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.x - - run: pip install --editable . - uses: pre-commit/action@v3.0.1 test: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index eb28d06..ae175d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,6 +74,7 @@ skip = [ archs = ["x86_64", "universal2", "arm64"] [tool.isort] +known_first_party = ["soundswallower"] profile = "black" [tool.flake8]