Skip to content

Commit bfc9603

Browse files
committed
refactor: simplify CI/CD - remove code quality checks
- Remove Black, isort, Flake8, and MyPy checks from CI/CD - Code quality should be enforced via pre-commit hooks locally - Rename workflow from 'Code Quality' to 'CI Tests' - Keep only dependency installation and import structure tests - Prevents PR failures due to formatting issues
1 parent ce33b91 commit bfc9603

2 files changed

Lines changed: 3 additions & 18 deletions

File tree

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code Quality
1+
name: CI Tests
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
branches: [ main, master, develop ]
88

99
jobs:
10-
code-quality:
10+
test-imports:
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -29,22 +29,8 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install --upgrade pip
32-
pip install black flake8 mypy isort types-requests
3332
pip install -r requirements.txt
3433
35-
- name: Run Black (Code Formatting)
36-
run: black --check --diff . --exclude="/(build|dist|venv|env|\.venv|\.env|\.git|\.mypy_cache|\.pytest_cache|\.tox)/"
37-
38-
- name: Run isort (Import Sorting)
39-
run: isort --check-only --diff . --skip-glob="**/build/**" --skip-glob="**/dist/**" --skip-glob="**/venv/**" --skip-glob="**/.venv/**"
40-
41-
- name: Run Flake8 (Linting)
42-
run: flake8 . --max-line-length=88 --ignore=E203,W503 --exclude=.venv,venv,__pycache__,.git,build,dist
43-
44-
- name: Run MyPy (Type Checking)
45-
run: mypy . --ignore-missing-imports --no-strict-optional --exclude="(build|dist|venv|env|\.venv|\.env|\.git|\.mypy_cache|\.pytest_cache|\.tox)/"
46-
continue-on-error: false # Make MyPy a required check
47-
4834
- name: Test Import Structure
4935
run: |
5036
python -c "import coderag.config; print('✓ Config import successful')"

coderag/search.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ def search_code(query: str, k: int = 5) -> List[Dict[str, Any]]:
6363
)
6464

6565
logger.debug(
66-
f"Search returned {len(results)} results for query: "
67-
f"'{query[:50]}...'"
66+
f"Search returned {len(results)} results for query: " f"'{query[:50]}...'"
6867
)
6968
return results
7069

0 commit comments

Comments
 (0)