-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Add pycodestyle config via tox, add tox environment #30408
Comments
comment:2
Perhaps also add a tox environment that runs pycodestyle? |
comment:3
Speaking of vs code, would it make sense to add a configuration or configuration template for that as well in ~/.vscode so that it knows to launch local/bin/sage and local/bin/python3? |
comment:4
I've no experience with tox, and thus cannot decide if this makes sense or not. Feel free to hijack this PR and add the necessary config.
This definitely makes sense! However, the last time I tried to point vscode to the local sage python environment, it didn't work. My hope was that with the inplace compilation it will work. |
comment:5
Replying to @tobiasdiez:
I was able to set it so that it can run local/bin/python3 and that was good enough to do some debugging work |
comment:6
Replying to @tobiasdiez:
Sure, will do |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Tobias Diez, Matthias Koeppe |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
This auto-provisions pycodestyle Can do the same also for pyright via https://pypi.org/project/nodeenv/ |
comment:11
Thanks! If you want to enable type checking in a purely pythonic environment, then perhaps mypy (or pytype or PyCharm) are better alternatives. Pyright was mainly designed to be used in combination with VS code and for CI. Anyway, that's not the topic of this ticket ;-). |
comment:13
Replying to @tobiasdiez:
OK, I've opened #30411 for this, but it's not a high priority to work on it. |
Reviewer: Matthias Koeppe, Tobias Diez |
Changed branch from public/build/pycodestyleConfig to |
Changed commit from |
Adds the current configuration of pycodestyle (as taken from the patchbot) to the src/tox.ini file. Thus, it can be run now locally via the cli
pycodestyle
. Moreover, tools like VS Code can pick it up automatically. The corresponding changes for the patchbot are done in sagemath/sage-patchbot#145.Documentation will be added in #30361.
CC: @mkoeppe @fchapoton
Component: build
Author: Tobias Diez, Matthias Koeppe
Branch:
939e9e0
Reviewer: Matthias Koeppe, Tobias Diez
Issue created by migration from https://trac.sagemath.org/ticket/30408
The text was updated successfully, but these errors were encountered: