Skip to content

Commit b624249

Browse files
authored
chore(ci): simplify pre-commit tests (#434)
1 parent c5f8a68 commit b624249

File tree

4 files changed

+2
-76
lines changed

4 files changed

+2
-76
lines changed

.github/workflows/pre_commit.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,14 @@ jobs:
2525
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2626
with:
2727
python-version-file: ".python-version"
28-
- name: Set up Node.js
29-
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
30-
with:
31-
node-version: 24
3228
- name: Install uv
3329
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
3430
- name: Install dependencies
3531
run: |
3632
uv sync --locked --all-extras
3733
- name: Run pre-commit checks
3834
run: |
39-
uv run pre-commit run --all-files
35+
uvx pre-commit run --all-files
4036
Unit-Tests:
4137
runs-on: ubuntu-24.04
4238
steps:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Set up your development environment to start contributing. This involves install
5454
4. **Pass Tests and Quality Checks:** Ensure the test suite passes and that your code meets quality standards by running:
5555

5656
```bash
57-
uv run pre-commit run --all-files
57+
uvx pre-commit run --all-files
5858
uv run pytest tests/unit
5959
uv run python tests/accuracy/download_models.py -d data -j tests/precommit/public_scope.json -l
6060
uv run pytest --data=./data tests/functional

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ dependencies = [
3232

3333
[project.optional-dependencies]
3434
tests = [
35-
"pre-commit",
3635
"httpx",
3736
"pytest",
3837
"pytest-cov",

uv.lock

Lines changed: 0 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)