From 83f31b2a379bfff77e79f211f626aaa0c9b89c7a Mon Sep 17 00:00:00 2001 From: Max Ryabinin Date: Sat, 19 Apr 2025 11:20:20 +0200 Subject: [PATCH 1/4] Fix version-file for the Ruff action --- .github/workflows/check-style.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-style.yml b/.github/workflows/check-style.yml index 33fd1e6da..7f90a3e44 100644 --- a/.github/workflows/check-style.yml +++ b/.github/workflows/check-style.yml @@ -23,7 +23,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: astral-sh/ruff-action@v3 + with: + version-file: "requirements-dev.txt" - uses: astral-sh/ruff-action@v3 with: args: "format --check --diff" - version-file: "pyproject.toml" + version-file: "requirements-dev.txt" From e9f8abe5746b2dce45b4bb4be7c577012735115d Mon Sep 17 00:00:00 2001 From: Max Ryabinin Date: Sat, 19 Apr 2025 11:25:49 +0200 Subject: [PATCH 2/4] Change the output format to github --- .github/workflows/check-style.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check-style.yml b/.github/workflows/check-style.yml index 7f90a3e44..234fe8064 100644 --- a/.github/workflows/check-style.yml +++ b/.github/workflows/check-style.yml @@ -25,6 +25,7 @@ jobs: - uses: actions/checkout@v4 - uses: astral-sh/ruff-action@v3 with: + args: "--output-format github" version-file: "requirements-dev.txt" - uses: astral-sh/ruff-action@v3 with: From 45446deb28e52762f0fd65c47aebfd415e534340 Mon Sep 17 00:00:00 2001 From: Max Ryabinin Date: Sat, 19 Apr 2025 11:27:40 +0200 Subject: [PATCH 3/4] Revert the format change --- .github/workflows/check-style.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/check-style.yml b/.github/workflows/check-style.yml index 234fe8064..7f90a3e44 100644 --- a/.github/workflows/check-style.yml +++ b/.github/workflows/check-style.yml @@ -25,7 +25,6 @@ jobs: - uses: actions/checkout@v4 - uses: astral-sh/ruff-action@v3 with: - args: "--output-format github" version-file: "requirements-dev.txt" - uses: astral-sh/ruff-action@v3 with: From 01adf5ade79990e53da442c0d33c30186a8665fa Mon Sep 17 00:00:00 2001 From: Max Ryabinin Date: Sat, 19 Apr 2025 11:29:02 +0200 Subject: [PATCH 4/4] Fix the format --- tests/test_utils/custom_networks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_utils/custom_networks.py b/tests/test_utils/custom_networks.py index 20d92a2ef..89fb3242c 100644 --- a/tests/test_utils/custom_networks.py +++ b/tests/test_utils/custom_networks.py @@ -4,7 +4,6 @@ from hivemind.moe import register_expert_class - sample_input = lambda batch_size, hidden_dim: torch.empty((batch_size, hidden_dim))