Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade pre-commit and flake8 dependencies; fix flake8 warnings #2399

Merged
merged 12 commits into from
Aug 7, 2023

Conversation

ff137
Copy link
Contributor

@ff137 ff137 commented Aug 6, 2023

Edit: flake8 must remain pinned to v4.0 as pytest-flake8 is unmaintained and doesn't support flake8 > 5.0 (latest = 6.1)
I propose migrating to ruff and pytest-ruff. Created issue: #2400


Upgrades .pre-commit-config.yaml to use latest versions for pre-commit-hook, black, and flake8.
This fixes pre-commit not being in sync with black/flake8 enforcement in the github actions.

Additionally we upgrade flake8, flake8-docstrings, and pydocstyle to latest.

Includes fixes for all flake8 warnings in ./aries_cloudagent, because if PR tests enforces flake8, then the existing code should abide by it too :-)

The remaining flake8 warnings are primarily for missing docstrings in ./demo

@ff137 ff137 marked this pull request as draft August 6, 2023 09:57
pytest-flake8 is unmaintained and does not support flake8 > 5.0

Signed-off-by: ff137 <[email protected]>
@ff137 ff137 marked this pull request as ready for review August 6, 2023 10:46
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@dbluhm dbluhm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good update, thanks! I think the conversation started on #2400 is one we need to have but these changes are good in the interim.

@dbluhm
Copy link
Contributor

dbluhm commented Aug 7, 2023

@swcurran I just noticed that the acapy-integration-tests action isn't marked as required; was this a stopgap with the recent outages on the test ledger? I was going to mark this for auto-merge so it would merge after the tests finished but am unable to.

@swcurran
Copy link
Contributor

swcurran commented Aug 7, 2023

I don’t think anything changed — all of the BCovrin tests are running again now that the ledger has been reset. Definitely, we need to discuss what tests are required — tomorrow’s ACA-Pug.

@dbluhm dbluhm merged commit db2d9d4 into openwallet-foundation:main Aug 7, 2023
@ff137 ff137 deleted the upgrade/pre-commit branch July 4, 2024 22:09
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.

3 participants