CI: Lint and format checks silently pass despite failures #7

Closed
opened 2026-05-09 05:18:44 +00:00 by Mark · 1 comment
Owner

Severity: Low

The CI workflow at .forgejo/workflows/ci.yml appends || true to both black --check and flake8 commands, which means lint/format failures are always masked and CI never fails on them.

- name: Check code formatting
  run: |
    pip install black
    black --check vikunja_cli/ vikunjatool/ tests/ || true  # <-- ignores failures

- name: Check linting
  run: |
    pip install flake8
    flake8 vikunja_cli/ vikunjatool/ tests/ --max-line-length=100 || true  # <-- ignores failures

Impact: Code quality degrades silently. Formatting and lint issues can be introduced without CI flagging them.

Fix: Remove || true from these steps. If there are existing violations, fix them or create a baseline. Consider also:

  • Adding a lint step that actually reports failures (not just formatting)
  • Adding ruff as a faster alternative to flake8
  • Running lint/format checks before tests so they fail fast
**Severity: Low** The CI workflow at `.forgejo/workflows/ci.yml` appends `|| true` to both `black --check` and `flake8` commands, which means lint/format failures are always masked and CI never fails on them. ```yaml - name: Check code formatting run: | pip install black black --check vikunja_cli/ vikunjatool/ tests/ || true # <-- ignores failures - name: Check linting run: | pip install flake8 flake8 vikunja_cli/ vikunjatool/ tests/ --max-line-length=100 || true # <-- ignores failures ``` **Impact:** Code quality degrades silently. Formatting and lint issues can be introduced without CI flagging them. **Fix:** Remove `|| true` from these steps. If there are existing violations, fix them or create a baseline. Consider also: - Adding a lint step that actually reports failures (not just formatting) - Adding `ruff` as a faster alternative to flake8 - Running lint/format checks before tests so they fail fast
Mark closed this issue 2026-05-09 14:28:34 +00:00
Author
Owner

Fixed in commit cc6f54e. Closing.

Fixed in commit cc6f54e. Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/vikunja-cli#7
No description provided.