From 599b9faccbda80d807b0a4e1f96c58d6b995f1f0 Mon Sep 17 00:00:00 2001 From: smartdev Date: Tue, 17 Feb 2026 11:41:43 +0100 Subject: [PATCH 1/2] fix: enforce strict code quality checks on dev branch --- .github/workflows/code-quality.yml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index acfa622..b41fe5b 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -2,9 +2,9 @@ name: Code Quality on: push: - branches: [ main, dev ] + branches: [ main, develop, dev ] pull_request: - branches: [ main, dev ] + branches: [ main, develop, dev ] jobs: lint: @@ -29,30 +29,22 @@ jobs: - name: Check code formatting with Black run: | black --check --diff akavesdk/ private/ sdk/ tests/ - continue-on-error: true - name: Check import sorting with isort run: | isort --check-only --diff akavesdk/ private/ sdk/ tests/ - continue-on-error: true - name: Lint with flake8 run: | - # Stop the build if there are Python syntax errors or undefined names - flake8 akavesdk/ private/ sdk/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics - # Exit-zero treats all errors as warnings - flake8 akavesdk/ private/ sdk/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics - continue-on-error: true + flake8 akavesdk/ private/ sdk/ tests/ --count --max-complexity=10 --max-line-length=120 --show-source --statistics - name: Lint with pylint run: | - pylint akavesdk/ private/ sdk/ --max-line-length=120 --disable=C0111,R0903,W0212,C0103 --exit-zero - continue-on-error: true + pylint akavesdk/ private/ sdk/ --max-line-length=120 --disable=C0111,R0903,W0212,C0103 - name: Type check with mypy run: | mypy akavesdk/ private/ sdk/ --ignore-missing-imports --no-strict-optional - continue-on-error: true security: runs-on: ubuntu-latest @@ -74,14 +66,12 @@ jobs: - name: Check for security vulnerabilities with Safety run: | - safety check --json || true - continue-on-error: true + safety check --json - name: Security check with Bandit run: | - bandit -r akavesdk/ private/ sdk/ -ll -f json -o bandit-report.json || true - bandit -r akavesdk/ private/ sdk/ -ll || true - continue-on-error: true + bandit -r akavesdk/ private/ sdk/ -ll -f json -o bandit-report.json + bandit -r akavesdk/ private/ sdk/ -ll - name: Upload Bandit report uses: actions/upload-artifact@v4 @@ -107,6 +97,4 @@ jobs: run: | python -m pip install --upgrade pip pip install pip-audit - pip-audit --desc || true - continue-on-error: true - + pip-audit --desc From 999fc8b97c2590fbea1d78a907dc8e613b516ba5 Mon Sep 17 00:00:00 2001 From: smartdev Date: Tue, 17 Feb 2026 11:45:16 +0100 Subject: [PATCH 2/2] chore: remove develop from CI triggers per user request --- .github/workflows/code-quality.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index b41fe5b..ca120c4 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -2,9 +2,9 @@ name: Code Quality on: push: - branches: [ main, develop, dev ] + branches: [ main, dev ] pull_request: - branches: [ main, develop, dev ] + branches: [ main, dev ] jobs: lint: