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

ci: add py3.12 support #731

Merged
merged 4 commits into from
Apr 28, 2024
Merged

ci: add py3.12 support #731

merged 4 commits into from
Apr 28, 2024

Conversation

chenrui333
Copy link
Contributor

I have migrated the brew build into py3.12, and it works out fine, thus adding the support in here as well.

Signed-off-by: Rui Chen <rui@chenrui.dev>
@jarun
Copy link
Owner

jarun commented Apr 8, 2024

CI fails. Please check.

.circleci/config.yml Show resolved Hide resolved
Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Rui Chen <rui@chenrui.dev>
@chenrui333 chenrui333 requested a review from jarun April 8, 2024 04:28
Signed-off-by: Rui Chen <rui@chenrui.dev>
[testenv:quick]
basepython = {env:BASEPYTHON:py311}
basepython = {env:BASEPYTHON:py312}
Copy link
Collaborator

@LeXofLeviafan LeXofLeviafan Apr 8, 2024

Choose a reason for hiding this comment

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

Note that this change replaces the default python version (unless explicitly specified)

…I believe 3.12 is still disabled in my repo as not all core packages support it as of yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but I guess we can find out the issues when we make this switch?

@@ -228,7 +228,7 @@ class ApiBookmarkSearchView(MethodView):

def get(self):
arg_obj = request.args
keywords = arg_obj.getlist('keywords')
keywords = arg_obj.getlist('keywords') # pylint: disable=E1101
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of disabling typecheck, shouldn't you clarify the type of request.args?

Copy link
Owner

Choose a reason for hiding this comment

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

@LeXofLeviafan what change is required here? I cna make the change and move forward. Please share the code.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of disabling type check, the correct way to fix the pylint error is to clarify the type of request.args (# type: MultiDict, probably along with an import fromwerkzeug.datastructures).
This applies to both instances of E1101.

Copy link
Owner

Choose a reason for hiding this comment

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

I am approving this change. Please raise the PR.

@jarun
Copy link
Owner

jarun commented Apr 24, 2024

@LeXofLeviafan please approve when this is ready.

@jarun jarun merged commit 228dd8d into jarun:master Apr 28, 2024
1 check passed
@jarun
Copy link
Owner

jarun commented Apr 28, 2024

Thank you!

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