ci: add flake8, black, and pytest-cov - #177
Merged
SharanyaAchanta merged 4 commits intoMar 3, 2026
Merged
Conversation
Thanks for creating a PR for your Issue!
|
Owner
|
Hey, thanks for the PRs! I was caught up with other merges yesterday. Since today is the final day, I’m wrapping things up. I see some checks are failing now—if you can resolve them quickly, let me know. If not, no worries at all, thanks for your contribution! |
Owner
|
Hey @Aspect022 Please resolve the merge conflicts too |
Contributor
Author
|
yes i am solving them rn |
Aspect022
force-pushed
the
feature/ci-enhancements
branch
from
March 3, 2026 06:35
6034e42 to
88e73ec
Compare
Contributor
Author
|
@SharanyaAchanta i have done it can you chcek noww |
Owner
|
@Aspect022 Conflicts are resolved now but one check is failing |
Contributor
Author
|
@SharanyaAchanta all done all checks have passsed!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
The current CI workflow relies only on standard test execution via
pytest. To ensure consistent code style among contributors and prevent unnoticed drops in test coverage, automated checks for formatting, linting, and coverage tracking needed to be integrated into the GitHub Actions pipeline.What changes are included in this PR?
flake8,black, andpytest-covto the requirements.txt under the Testing section.blackcheck to enforce consistent code formatting (black --check .).flake8execution step to surface syntax errors and undefined names as well as track complexity.pytestcommand to utilizepytest-covto output both a terminal and XML coverage report for PRs.(Note: We deliberately kept the threshold flags off for coverage right now to prevent immediately failing the CI, allowing the team to establish the baseline and address currently breaking tests sequentially.)
Are these changes tested?
Yes. The workflow updates were validated to ensure that GitHub actions will trigger the new linting, formatting, and coverage tools correctly on incoming PRs and pushes.
Are there any user-facing changes?
No user-facing application changes. These modifications are strictly related to internal CI/CD infrastructure and developer tooling.