-
Notifications
You must be signed in to change notification settings - Fork 521
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
Conversation
Signed-off-by: ff137 <[email protected]>
Signed-off-by: ff137 <[email protected]>
Signed-off-by: ff137 <[email protected]>
Signed-off-by: ff137 <[email protected]>
Signed-off-by: ff137 <[email protected]>
Signed-off-by: ff137 <[email protected]>
Signed-off-by: ff137 <[email protected]>
…e `is` / `is not`, for instance checks use `isinstance()`" Signed-off-by: ff137 <[email protected]>
Signed-off-by: ff137 <[email protected]>
Signed-off-by: ff137 <[email protected]>
pytest-flake8 is unmaintained and does not support flake8 > 5.0 Signed-off-by: ff137 <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this 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.
@swcurran I just noticed that the |
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. |
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