Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff mypy pydantic vulture radon
pip install ruff mypy pydantic vulture radon bandit openenv-core
pip install -e ".[dev,demo]"

- name: Lint and Format with Ruff
Expand All @@ -38,6 +38,10 @@ jobs:
run: |
mypy .

- name: Static Analysis with Bandit
run: |
bandit -r . -c pyproject.toml

- name: Dead Code Detection with Vulture
run: |
vulture . --min-confidence 80 --exclude .venv,venv,.cursor,web/node_modules
Expand All @@ -47,9 +51,13 @@ jobs:
radon cc . -a -nc
radon mi . -nc

- name: OpenEnv validation
run: |
openenv validate .

- name: Pytest validation
run: |
python -m pytest tests/ -q --tb=line
PYTHONPATH=. python -m pytest tests/ -q --tb=line

frontend-quality:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -87,7 +95,7 @@ jobs:
node-version: '24'

- name: Install jscpd
run: npm install -g jscpd
run: npm install -g jscpd@4.0.0

- name: Check for duplicate code
run: jscpd . --ignore "**/*.json,**/*.md,**/*.yaml,**/*.yml,**/package-lock.json,**/node_modules/**,**/venv/**,**/.venv/**" --threshold 5
run: jscpd . --ignore "**/*.json,**/*.md,**/*.yaml,**/*.yml,**/package-lock.json,**/node_modules/**,**/venv/**,**/.venv/**,**/dist/**,**/build/**" --threshold 5
Loading