-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
adding a minimal lgtm.yml file #28839
Comments
Branch: u/chapoton/28839 |
New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
comment:3
That looks interesting. |
comment:4
The reports can be found here: https://lgtm.com/projects/g/sagemath/sage/?mode=list but the problem is that it only runs when "master" branch is updated.. |
comment:5
I wonder if there is a setting to change the branch to track. |
comment:6
the only way seems to be : change our main branch on github to be "develop" |
comment:7
Replying to @embray:
ISTM that LGTM is reading from the GitHub mirror of our repo, so I just need to change its default branch to the develop branch. I don't think there will be any consequences to doing so, so I'll go ahead and do that. |
comment:8
I'm looking at this site, and while many of the alerts look useful, a great many of the "errors" reported are due to supposedly incorrect arguments to a class's So perhaps while we're adding this file it might be helpful to globally exclude this and related errors as explained here. For example, from what I'm seeing in the errors, we want at least:
Of course, we can also suppress alerts on individual lines, but these two are so pervasive it would not be practical. Suppressing them globally unfortunately could hide legitimate errors, though these errors are likely to be caught by tests in most cases. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
indeed. Done |
comment:11
Heh, actually it turns out the actual majority of errors are of the class py/unsafe-cyclic-import. We should probably globally disable that one as well :) |
comment:12
If you add that too, can you please also include in your commit message a link to this discussion so that it's clearer why it was added. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Replying to @embray:
LGTM :) Though please consider either squashing your commits and/or adding some more details or link to this ticket. "adding stuff to this file for no apparent reason"-type commit messages are not helpful :( |
Reviewer: Erik Bray |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. This was a forced push. New commits:
|
comment:17
ok, better like that ? |
comment:19
Thank you! |
Changed branch from u/chapoton/28839 to |
This will tell LGTM to use Python3 during its code analysis.
as suggested here:
https://lgtm.com/help/lgtm/analysis-faqs#how-python-version-identified
CC: @tscrim @kiwifb @embray @vbraun
Component: scripts
Author: Frédéric Chapoton
Branch/Commit:
f3640c2
Reviewer: Erik Bray
Issue created by migration from https://trac.sagemath.org/ticket/28839
The text was updated successfully, but these errors were encountered: