Skip to content

Fix style check failures by adding Flake8 config and applying Black formatting#2

Merged
Arsham-001 merged 2 commits intomainfrom
copilot/fix-test-and-style-issues
Nov 25, 2025
Merged

Fix style check failures by adding Flake8 config and applying Black formatting#2
Arsham-001 merged 2 commits intomainfrom
copilot/fix-test-and-style-issues

Conversation

Copy link
Contributor

Copilot AI commented Nov 25, 2025

Style CI was failing because Flake8 wasn't reading configuration from pyproject.toml (it doesn't by default) and Black formatting hadn't been applied to the codebase.

Changes

  • Added Flake8 config to setup.cfg matching pyproject.toml settings:

    [flake8]
    max-line-length = 96
    extend-ignore = E203, W503
  • Applied Black formatting across 33 files

  • Fixed Flake8 violations:

    • Removed unused imports (F401)
    • Fixed f-strings without placeholders (F541)
    • Removed/commented unused variables (F841)
    • Changed bare except: to except Exception: (E722)
    • Fixed line length and whitespace issues (E501, E231)

All 121 tests continue to pass.

Original prompt

why are the test and style failing


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 25, 2025
Co-authored-by: Arsham-001 <204581662+Arsham-001@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues with tests and style checks Fix style check failures by adding Flake8 config and applying Black formatting Nov 25, 2025
Copilot AI requested a review from Arsham-001 November 25, 2025 16:03
@Arsham-001 Arsham-001 marked this pull request as ready for review November 25, 2025 16:39
@Arsham-001 Arsham-001 merged commit 8191f68 into main Nov 25, 2025
8 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.

2 participants