Skip to content

Commit b33b148

Browse files
committed
fix: Sync CI and pre-commit configurations
- Add explicit src/ directory to pre-commit ruff checks - Add ruff format check to CI pipeline - Fix trailing whitespace in ci.yml - Ensure consistent linting between local and CI environments
1 parent a0f672a commit b33b148

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ jobs:
2828
- name: Install dependencies
2929
run: uv sync
3030

31-
- name: Run Ruff
31+
- name: Run Ruff Linter
3232
run: uv run ruff check src/
3333

34+
- name: Run Ruff Formatter (check only)
35+
run: uv run ruff format --check src/
36+
3437
- name: Run MyPy
3538
run: uv run mypy src/youtrack_rocket_mcp --ignore-missing-imports
3639

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ repos:
1010
entry: uv run ruff check
1111
language: system
1212
types: [python]
13-
args: [--fix]
13+
args: [--fix, src/]
14+
pass_filenames: false
1415
require_serial: true
1516

1617
- id: ruff-format
1718
name: ruff (format)
1819
entry: uv run ruff format
1920
language: system
2021
types: [python]
22+
args: [src/]
23+
pass_filenames: false
2124
require_serial: true
2225

2326
# MyPy via uv

0 commit comments

Comments
 (0)