-
Notifications
You must be signed in to change notification settings - Fork 25
Add support for Python 3.12 and enable it in CI #54
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
Conversation
Oh, I didn't know updating black would introduce syntax errors for 3.8. I'm going to drop this commit then. Not a biggie. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #54 +/- ##
==========================================
- Coverage 75.01% 75.01% -0.01%
==========================================
Files 132 132
Lines 34368 34367 -1
==========================================
- Hits 25781 25780 -1
Misses 8587 8587 ☔ View full report in Codecov by Sentry. |
yeah I faced this is another PR too. I think the line size limit on Black is different from whatever checks the linting in CI |
For me it wasn't even about the line size. Apparently adding parenthesis to |
`flake8`s E721 rule states that the types should not be compared. Instead, `isinstance` should be used. This commit replaces all the type comparisons with calls for `isinstance`. [1] https://www.flake8rules.com/rules/E721.html Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
`AsyncManagementCommands` was first defined as `ManagementCommands` and just two lines below it was redefined as a class derived from `ManagementCommands`. This triggered F811 error in flake8 [1]. This commit removes the redundant definition. [1]: https://www.flake8rules.com/rules/F811.html Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
dev_requirements.txt used to have pinned version of some of dev dependencies. Some of these pinned versions didn't work with Python3.12 at all. This commit removes most of pinned versions for now. Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
passing `-c/--color` to `invoke` will enable colored output in the tasks. This argument must go _after_ the task name. Examples: inv tests -c invoke linters --color This commit fixes #47 Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
So excited to see this merged! |
Pull Request check-list
Please make sure to review and check all of these items:
NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
This changeset finishes adding support for Python 3.12. This should close #24