-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
src/tox.ini: Check patchbot plugin patterns and common typo patterns #30467
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
Author: Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
comment:10
Overall looks good to me. A few suggestions:
|
comment:11
Replying to @tobiasdiez:
Thanks for the heads-up. Do you have a specific suggestion what to do instead?
Right. For now I just wanted to get these on par with the patchbot. I would prefer to make further refinements in follow-up tickets. Regarding Python 3 - these patterns may still be helpful when reviving ancient branches. Some of these patterns, of course, will be flagged by the Python 3 parser; but other patterns are for syntactically correct but outdated library functions that may be used in parts of code that is not covered by doctests.
I'll do this in #30453 (Document "sage -tox")
#30404 should possibly just invoke tox |
comment:12
I think in most cases you can simply remove the Scrolling through the tox documentation, I'm also not sure if the processing of arguments is really in the spirit of tox. For example, the foreach loop for relint makes it impossible to pass further cmd args to relint (since they would end up in the loop). On the other hand, I see that its also convenient to have a systematic interface to apply the command to only one file. Maybe leave this functionality to |
comment:13
Replying to @tobiasdiez:
tox runs all environments by default -- so there needs to be a uniform interface for file/directory arguments |
comment:14
Replying to @tobiasdiez:
OK. I think I am going to change Then I can get rid of |
comment:15
I'll do this in #30474 |
comment:16
Replying to @tobiasdiez:
No, I think it's important to keep plain |
comment:17
Needs review. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:21
I like it. It saves you from waiting on the patchbots to do trivial stuff. As for the python3 style. That is still helpful. Iterator classes will probably still take Works for me. @tobiasdiez: Do you have anything that needs changing yet. |
Reviewer: Jonathan Kliem |
comment:22
No, it looks fine for me as well (given that #30474 is addressed at some point). |
Changed reviewer from Jonathan Kliem to Jonathan Kliem, Tobias Diez |
comment:23
Thanks! |
Changed branch from u/mkoeppe/src_tox_ini__check_patchbot_plugin_patterns to |
(from #30448)
We add a tox environment that checks all of the static patterns that the patchbot checks - https://github.com/sagemath/sage-patchbot/blob/master/sage_patchbot/plugins.py#L601
This is so that developers can check style locally instead of going through endless cycles with the patchbot on trac.
This uses https://pypi.org/project/relint/
Example:
Depends on #30410
CC: @fchapoton @jhpalmieri @tobiasdiez @tscrim @slel @kliem
Component: scripts
Author: Matthias Koeppe
Branch/Commit:
7cf9efe
Reviewer: Jonathan Kliem, Tobias Diez
Issue created by migration from https://trac.sagemath.org/ticket/30467
The text was updated successfully, but these errors were encountered: