mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
ci: configure pre-commit hooks and github actions to use uv run (#3479)
This commit is contained in:
2
.github/workflows/type-checker.yml
vendored
2
.github/workflows/type-checker.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
|||||||
run: uv python install ${{ matrix.python-version }}
|
run: uv python install ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: uv sync --dev --no-install-project
|
run: uv sync --dev --all-extras --no-install-project
|
||||||
|
|
||||||
- name: Get changed Python files
|
- name: Get changed Python files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: local
|
||||||
rev: v0.12.11
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: ["--config", "pyproject.toml"]
|
name: ruff
|
||||||
|
entry: uv run ruff check
|
||||||
|
language: system
|
||||||
|
types: [python]
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
args: ["--config", "pyproject.toml"]
|
name: ruff-format
|
||||||
|
entry: uv run ruff format
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
language: system
|
||||||
rev: v1.17.1
|
types: [python]
|
||||||
hooks:
|
|
||||||
- id: mypy
|
- id: mypy
|
||||||
args: ["--config-file", "pyproject.toml"]
|
name: mypy
|
||||||
|
entry: uv run mypy
|
||||||
|
language: system
|
||||||
|
types: [python]
|
||||||
|
|||||||
Reference in New Issue
Block a user