Skip to content

feat(ci): Add GitHub Actions lint workflow - CGAI-23#3

Merged
Yosoyepa merged 1 commit intodevelopfrom
feature/github-actions-lint
Nov 6, 2025
Merged

feat(ci): Add GitHub Actions lint workflow - CGAI-23#3
Yosoyepa merged 1 commit intodevelopfrom
feature/github-actions-lint

Conversation

@Yosoyepa
Copy link
Owner

@Yosoyepa Yosoyepa commented Nov 6, 2025

GitHub Actions - Lint & Format Workflow (CGAI-23)

Changes

  • GitHub Actions workflow: .github/workflows/lint.yml
  • Black formatter configuration (line-length: 100)
  • isort configuration (black profile)
  • Flake8 linting configuration
  • Code formatting fixes in main.py

Workflow Details

Triggers on:

  • Push to: main, develop, feature/** branches
  • Pull requests to: main, develop
  • Only on Python file changes in backend/

Checks Performed:

  1. Black: Code formatting consistency
  2. isort: Import statement organization
  3. Flake8: PEP 8 linting

Testing

cd backend/
black src/ --line-length=100
isort src/ --profile=black
flake8 src/ --max-line-length=100

All checks pass locally

Status

  • [] Code review approved
  • Tests pass
  • No conflicts
  • Documentation updated

Closes: CGAI-23
Epic: CGAI-8 (DevOps)
Sprint: Sprint 1

Configure code quality checks with GitHub Actions:
- Black formatter validation (line-length: 100)
- isort import sorting check
- Flake8 linting (PEP 8 compliance)

Workflow configuration:
- Triggers on push to main/develop/feature branches
- Triggers on PRs to main/develop
- Runs only on Python files changes in backend/

Fixes:
- Format main.py according to PEP 8 standards
- Configure Black with compatible Python targets

Related: CGAI-23
@Yosoyepa Yosoyepa merged commit 7332006 into develop Nov 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant