-
-
Notifications
You must be signed in to change notification settings - Fork 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
refactor(no-release): make mypy standalone #608
Conversation
f7568a9
to
718d68c
Compare
fdb618d
to
960927e
Compare
Ooops, damn the configuration. Or maybe add a |
Yep, it needs a no-release scope. |
@@ -50,7 +50,7 @@ repos: | |||
pass_filenames: false | |||
- id: mypy | |||
name: mypy | |||
entry: mypy --python-executable $(pdm info --python) | |||
entry: bash -c "mypy --python-executable $(pdm info --python) $@" -- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work on win? I don't confirm the bash is always available on win.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, I never tried it - -
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean it seems not to support pre-commit on win. And the pre-commit is absent in the Makefile or in CI. So it can't verify its working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will try it when Win is available. It should fail when I try to push the code, I also feel a little confused why it does not take effect then. Actually, I did not realize the problem until I try to push something else and it failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some investigation, there is no easy solution for cross-platform command substitution or environment variable substitution. The maintainer of pre-commit also suggests the bash -c
and env
approach. :(
b7eb944
to
ec375a8
Compare
After consideration, I think we should keep Thanks for all the challenges and pushing back. I really appreciate the collaboration. |
This is a first step for #465, mypy is the most special case and fortunately we make it work.
Any comments are welcome.
📚 Documentation preview 📚: https://ss-python--608.org.readthedocs.build/en/608/