Questions tagged [pychecker]

14 questions
406
votes
2 answers

Pylint, PyChecker or PyFlakes?

I would like to get some feedback on these tools on: features; adaptability; ease of use and learning curve.
Bite code
  • 578,959
  • 113
  • 301
  • 329
14
votes
5 answers

Python correctness (i.e., lint) analyzing for Notepad++

Does anyone know of anything like pylint or pychecker for notepad++? Or perhaps how to use pylint in notepad++.
Belmin Fernandez
  • 8,307
  • 9
  • 51
  • 75
2
votes
1 answer

Checking unwanted type change in Python

I come from static-type programming and I'm interested in understanding the rationale behind dynamic-type programming to check if dynamic-type languages can better fit my needs. I've read about the theory behind duck programming. I've also read that…
Claudio
  • 10,614
  • 4
  • 31
  • 71
2
votes
2 answers

How to control of the python/Django/Celery code quality

I am leading a big python project, it using Django(model), celery, python. Right now, I just find the code quality is out of control. The problems are: The code submitted to git has some basic programmer mistake (It's had to covered by test) Sever…
James
  • 79
  • 1
  • 6
2
votes
5 answers

What should replace comparisons with False in python?

I have a function that returns False if something isn't found, and returns a data structure with what I'm looking for otherwise. When I assign the value returned from this function to a variable my_var in a for loop, I do a if my_var == False:…
kiminoa
  • 2,649
  • 3
  • 16
  • 17
1
vote
2 answers

ERROR : No module named ""

I got a small problem using pylint to check my python code. I use the opencv library in my code, which results in E: 85: Module 'cv' has no 'MoveWindow' member errors in my code. The reason for that is explained here :…
jlengrand
  • 12,152
  • 14
  • 57
  • 87
1
vote
0 answers

Pychecker --keepgoing (import) problem

i encountered the following problem when i use PyChecker on modules with an import that is not existing. I called PyChecker with the --keepgoing and --only flags: PyChecker --keepgoing --only foo.py Now i am getting this problem: Processing module…
Gobliins
  • 3,848
  • 16
  • 67
  • 122
1
vote
1 answer

Is there a good way to apply pychecker/pylint to the python code in Tornado templates?

I am using Tornado 2.0 (Python 2.6.5) to build a simple web app. Naturally, my Tornado templates contain snippets of Python code. For my non-template code, I am using pychecker and pylint to check for errors, etc. However, obviously pychecker and…
capdigi
  • 203
  • 1
  • 2
  • 5
1
vote
3 answers

How can I tell Pychecker to ignore an imported library?

One of the modules I import into my python project triggers lots of warnings under Pychecker. Fixing up this external module isn't really an option, so I want to tell Pychecker to ignore it. Does anyone know how to do this? I'm sure it's possible,…
sam
  • 1,116
  • 2
  • 14
  • 19
0
votes
1 answer

I can't install pychecker on my ubuntu 21.04

So I'm trying to install pychecker to check a big python file my friend wanted me to check, but while trying to install pychecker using sudo apt-get install pychecker and sudo apt-get install -y pychecker and it returns E: Unable to locate package…
Arin CelMare
  • 96
  • 1
  • 12
0
votes
1 answer

Check python code for errors

I can check python files or modules for error via some libraries, like: pylint, pychecker, pyflakes, etc. In most case, I must specify file or directory for checking. For example: pylint directory/mymodule.py It's ok, but not enough for me. I want…
eterey
  • 390
  • 1
  • 4
  • 16
0
votes
1 answer

Can you run pychecker from virtualenv?

I want to do code analysis with pychecker but when it imports python code it doesn't use the packages from virtualenv, it uses the system wide one and the import fail. Is there a way to install pychecker in a virtualenv or at least get it to just…
nickponline
  • 25,354
  • 32
  • 99
  • 167
0
votes
1 answer

How do you configure pyChecker to read from a string?

I am trying to get pyChecker to check the syntax of a string. s=""" print "hi" print "hello" print 3/0 """ Is there anyway I can do this, I was trying to change the source code of pyChecker to read a string but it is too confusing. I could be…
user1357159
  • 309
  • 5
  • 19
-1
votes
1 answer

Pychecker index error on first run

I've just installed pychecker on windows 7 Pro using "python setup.py install". When I run it on my script using the command: c:\Python26\Scripts\pychecker -#100 finaltest17.py I get the following…