Spaces:
Runtime error
Runtime error
Charles Azam
commited on
Commit
·
62aafbe
1
Parent(s):
9114bec
feat: use ruff instead of black for formating
Browse files- .github/workflows/pipeline.yml +2 -6
- .pre-commit-config.yaml +0 -6
- Makefile +1 -1
.github/workflows/pipeline.yml
CHANGED
|
@@ -24,13 +24,9 @@ jobs:
|
|
| 24 |
run: uv sync --locked --all-extras --dev
|
| 25 |
|
| 26 |
- name: Run formatter check
|
| 27 |
-
run: uv run
|
| 28 |
|
| 29 |
-
|
| 30 |
-
# run: uv run ruff check src tests
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
- name: Run tests
|
| 34 |
run: uv run pytest tests
|
| 35 |
env:
|
| 36 |
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
|
|
|
| 24 |
run: uv sync --locked --all-extras --dev
|
| 25 |
|
| 26 |
- name: Run formatter check
|
| 27 |
+
run: uv run ruff format --check src tests
|
| 28 |
|
| 29 |
+
- name: Run tests
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
run: uv run pytest tests
|
| 31 |
env:
|
| 32 |
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
.pre-commit-config.yaml
CHANGED
|
@@ -1,10 +1,4 @@
|
|
| 1 |
repos:
|
| 2 |
-
- repo: https://github.com/psf/black
|
| 3 |
-
rev: 24.1.1
|
| 4 |
-
hooks:
|
| 5 |
-
- id: black
|
| 6 |
-
language_version: python3.13
|
| 7 |
-
|
| 8 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 9 |
rev: v0.2.0
|
| 10 |
hooks:
|
|
|
|
| 1 |
repos:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 3 |
rev: v0.2.0
|
| 4 |
hooks:
|
Makefile
CHANGED
|
@@ -11,7 +11,7 @@ install-pre-commit: ## Install pre-commit hooks
|
|
| 11 |
uv run pre-commit install
|
| 12 |
|
| 13 |
format: ## Format code with black
|
| 14 |
-
uv run
|
| 15 |
|
| 16 |
lint: ## Run ruff linter
|
| 17 |
uv run ruff check src tests
|
|
|
|
| 11 |
uv run pre-commit install
|
| 12 |
|
| 13 |
format: ## Format code with black
|
| 14 |
+
uv run ruff format src tests
|
| 15 |
|
| 16 |
lint: ## Run ruff linter
|
| 17 |
uv run ruff check src tests
|