-
Notifications
You must be signed in to change notification settings - Fork 14
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
Pre-commit update + fix docs build #402
Conversation
updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0) - [github.com/psf/black: 23.9.1 → 23.12.1](psf/black@23.9.1...23.12.1) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2) - [github.com/sirosen/check-jsonschema: 0.27.0 → 0.27.3](python-jsonschema/check-jsonschema@0.27.0...0.27.3) - [github.com/asottile/pyupgrade: v3.13.0 → v3.15.0](asottile/pyupgrade@v3.13.0...v3.15.0) - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.8.0](pre-commit/mirrors-mypy@v1.5.1...v1.8.0)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #402 +/- ##
==========================================
+ Coverage 60.08% 60.09% +0.01%
==========================================
Files 23 23
Lines 1458 1466 +8
==========================================
+ Hits 876 881 +5
- Misses 582 585 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
For the doc build failure, I guess aiidateam/aiida-core#6253 this will help? Or maybe just simply update the sphinx version to the latest. |
ca5c6ca
to
8ff5624
Compare
I've managed to fix the docs build in the end (in an ugly way). LMK if you want me to split it to a separate PR. |
Since fixing Sphinx problems requires adding many dependencies, why don't we switch to a later version of Sphinx itself? Are there any issues with such an update?? |
Also, the latest CI test failed because we are still supporting Python 3.8. Time to go on with Python>3.9? |
I think so, we drop it in AWB aiidalab/aiidalab-widgets-base#557 |
Sorry for not being clear, I explain the reason why we can't simply update in a note in Note that we're not adding new dependencies, we're pinning transitive dependencies that were already there.
This PR has already more stuff than I planned so I'll leave that to the next PR. |
Thanks for explaining @danielhollas, makes sense to me. |
Update of mypy now detects some new issues. Not sure if these are real or a mypy bug, need to investigate more.
EDIT: Looks like mypy was right and we were not ensuring that we return a proper types in one of the functions. The refactor I made is not very pretty but does the trick. Further cleanup would be more work I think.