Skip to content

Commit 241fd68

Browse files
committed
chore(ci): simplify pre-commit tests
1 parent da1fcea commit 241fd68

4 files changed

Lines changed: 2 additions & 79 deletions

File tree

.github/workflows/pre_commit.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,11 @@ 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@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
30-
with:
31-
node-version: 22
3228
- name: Install uv
3329
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
34-
- name: Install dependencies
35-
run: |
36-
uv sync --locked --all-extras
3730
- name: Run pre-commit checks
3831
run: |
39-
uv run pre-commit run --all-files
32+
uvx pre-commit run --all-files
4033
Unit-Tests:
4134
runs-on: ubuntu-24.04
4235
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/precommit/prepare_data.py -d data -p tests/precommit/public_scope.json
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)