Skip to content

fix(template): update mypy version of pyproject.toml #11

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

Closed
wants to merge 1 commit into from

Conversation

tai271828
Copy link
Contributor

mypy 0.770 is not compatible with python 3.9. The issue was fixed in
0.780 and 0.800 starts to support python 3.9 officially.

mypy issue 8614 and 8627
python/mypy#8614
python/mypy#8627

mypy 0.770 is not compatible with python 3.9. The issue was fixed in
0.780 and 0.800 starts to support python 3.9 officially.

mypy issue 8614 and 8627
python/mypy#8614
python/mypy#8627
@@ -114,7 +114,7 @@ coverage = {extras = ["toml"], version = "^5.0.4"}
# style
flake8 = "^3.7.9"
pylint = "^2.4.4"
mypy = "^0.770"
mypy = "^0.800"
Copy link
Owner

Choose a reason for hiding this comment

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

I'd suggest using syntax like {% if int({{ cookiecutter.python_version }}) >= 3.7 %} as 3.7 is still officially supported.

Copy link
Owner

Choose a reason for hiding this comment

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

I accidentally found this site quite useful. https://endoflife.date/python

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. Will update. The link is also interesting!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Preliminary study shows version comparison with Jinja2 is difficult. I may dive into cookiecutter itself to see if version comparison function is supported. : (

Copy link
Owner

Choose a reason for hiding this comment

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

@tai271828 Is there any update on this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, QQ. I did not work on this anymore. It's in my wish list of task. Feel free to close the pull request.

Copy link
Owner

Choose a reason for hiding this comment

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

No worries 🙂 Let's make it a draft one so that I know I don't need to review it at this moment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good! Draft is a good idea so we could keep the track.

Yeah I have had dug into this issue and found it is a rabbit hole : (

@Lee-W Lee-W marked this pull request as draft May 8, 2021 00:50
@Lee-W Lee-W force-pushed the master branch 2 times, most recently from 73cb2c2 to f86de41 Compare August 19, 2021 09:07
@Lee-W
Copy link
Owner

Lee-W commented Apr 20, 2024

I think we've updated mypy version to a higher than this PR proposed. Thus, I'll close this one for now. Please reopen it if you deem otherwise 🙂

@Lee-W Lee-W closed this Apr 20, 2024
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