Re: [sage-devel] Sage and pylint

2016-09-23 Thread Erik Bray
On Thu, Sep 22, 2016 at 5:38 PM, VulK wrote: > Hi Erik, > no options. As an example of the errors I get let's consider the ticket I am > working on (#21254). > > I installed pylint via > > $ sage -pip install pylint > my sage install is in /opt/sage so > > $

Re: [sage-devel] Sage and pylint

2016-09-23 Thread Dima Pasechnik
On Thursday, September 22, 2016 at 3:38:10 PM UTC, Salvatore Stella wrote: > > Hi Erik, > no options. As an example of the errors I get let's consider the ticket I > am > working on (#21254). > > I installed pylint via > > $ sage -pip install pylint > > my sage install is in

Re: [sage-devel] Sage and pylint

2016-09-22 Thread VulK
Hi Erik, no options. As an example of the errors I get let's consider the ticket I am working on (#21254). I installed pylint via $ sage -pip install pylint my sage install is in /opt/sage so $ /opt/sage/local/bin/pylint /opt/sage/src/sage/algebras/cluster_algebra.py | grep E: |

Re: [sage-devel] Sage and pylint

2016-09-22 Thread Erik Bray
On Fri, Sep 16, 2016 at 1:12 PM, VulK wrote: > Hi, > I thought this was a question for sage-devel because it is about tickets I > am currently working on (#21254 specifically). Sorry for the wrong > assumption. > > I did try sage -pip install pylint before posting but the

Re: [sage-devel] Sage and pylint

2016-09-16 Thread VulK
Hi, I thought this was a question for sage-devel because it is about tickets I am currently working on (#21254 specifically). Sorry for the wrong assumption. I did try sage -pip install pylint before posting but the results were identical (even launching it from within sage -sh) Thanks S.

Re: [sage-devel] Sage and pylint

2016-09-16 Thread Thierry
Hi, note that https://ask.sagemath.org is a nice place to ask such questions that are not related to sage development but still interesting. Anyway, Sage uses its own Python install, so you should install pylint within Sage and import it from there. A priori, the following should work:

[sage-devel] Sage and pylint

2016-09-16 Thread VulK
Dear all, I am trying to use pylint to validate some of the code in a patch I wrote for sage and, unsurprisingly, I am getting several complaints because my system-wide pylint can't resolve modules like sage.something. What is the correct way of doing this? Is there any other alternative to