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

Make mypy pass with Python 3.12 #6408

Merged
merged 1 commit into from
May 22, 2024

Conversation

danielhollas
Copy link
Collaborator

Mypy was failing for me locally on Fedora 39 with Python 3.12 due to missing distutils module.
I modified the deprecated get_strict_version function so that we raise explicitly for python 3.12 and above. This also fixed the mypy error.

Other drive-by changes:

  • Bump mypy version to 1.10.0 (needed to add a bunch of new type: ignore statements)
  • Bump pre-commit version

Mypy was failing due to missing distutils module.

+ other small changes:
 - Bump mypy version to 1.10.0
 - Bump pre-commit version
@danielhollas danielhollas requested a review from sphuber May 21, 2024 22:04
Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

All good thanks @danielhollas

@sphuber sphuber merged commit 04b3260 into aiidateam:main May 22, 2024
19 checks passed
@danielhollas danielhollas deleted the update-precommit-version branch May 22, 2024 06:43
mikibonacci pushed a commit to mikibonacci/aiida-core that referenced this pull request Sep 3, 2024
Also make `mypy` pass for Python 3.12 and newer, which is
failing due to missing `distutils` module in those versions.
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.

2 participants