Using Pylint with Django

I would very much like to integrate pylint into the build process for my python projects, but I have run into one show-stopper: One of the error types that I find extremely useful--:E1101: *%s %r...

Pylint, PyChecker or PyFlakes?

I would like to get some feedback on these tools on: features; adaptability; ease of use and learning curve.

Get list of changesets in a changegroup (mercurial python hook)

I want a mercurial hook that will run JSLint/PyChecker/etc on all files that are modified. However, I do not have control over all hg clients, and want this to run on push to the master repository...

What Vim script you recommend for checking Python syntax on the fly?

I have visited Vim website , script section and found several synthax checkers for python. But which one to choose ? I would prefer something that supports python 3 as well, even though I code in...

What does %* mean?

I installed pychecker and noticed the batch file I should use to run pychecker has these entries: C:\Python26\python.exe <!> C:\Python26\Lib\site-packages\pychecker\checker.py %* What does the...

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++.

Why is mixing 'from x import y' and 'import x' discouraged?

My script contains the following two lines as import-statements: import os from os import path This seems a logical approach for my script: I use os.path very often, so I want to access it as...

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...

No luck pip-installing pylint for Python 3

I'm interested in running a checker over my Python 3 code to point out possible flaws. PyChecker does not work with Python 3. I tried to pip-install Pylint, but this fails. The error message does...

pylint ignores .pylintrc when run from TextMate

I'm trying to get pylint to give html output when I run Validate syntax on a python file in TextMate. I installed pycheckmate, pylint, and created a .pylintrc file in $HOME that sets the output...

Checking python syntax of a string in Python?

Lets say I have a string s=""" print 'hi' print 'hi' print 3333/0 """ Is there a module or way that can help me check the syntax of this string? I would like the output to be like: Line 2,...

How to integrate any Python lint with GitHub commit status API?

Is there already a way to integrate one of Python lint programs (PyLint, PyChecker, PyFlakes, etc.) with GitHub commit status API? In this way Python lint could be automatically called on pull...

What is the correct flymake configuration for emacs? (using Python.el)

I am using emacs as python IDE. I am having flymake installed, however, it shows the following error whenever I work with a .py file Error (flymake): Flymake: Failed to launch syntax check...

Running flymake for python when files don't have .py extension

I'm not a lisp guy at all, but my primary scripting environment lives on emacs and I need some help to get my flymake/pyflakes running when there is no .py extension on files. Because some of the...

How to check if all modules imported by a Python script are installed without running the script?

I would like to check if all modules imported by a script are installed before I actually run the script, because the script is quite complex and is usually running for many hours. Also, it may...

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...

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...

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...

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...

Is there a tool to help find bugs or perform static analysis in Python?

Is there any tool to help to find bugs or perform static analysis in Python? I search this question in Google i found answer - Pychecker But i try to use pychecker its not work for import...

How to complete disable flymake and all the things it is hooked to?

Following are the snippets in my init.el relevant to Flymake: (add-hook 'python-mode-hook (lambda () (unless (eq buffer-file-name nil) (flymake-mode 1)) ;dont invoke flymake on temporary...

Jedi/rope/emacs configuration for python development

I think I'm having the same problem as this user in getting Jedi.el to work, but more trouble with the solution. I've installed EPC Rope ropemacs pymacs python-mode.el-6.1.3 pylint pyflakes I...

How to check python code including libraries?

I'm working on some machine learning code and today I've lost about 6 hours because simple typo. It was this: numpy.empty(100,100) instead of numpy.empty([100,100]) As I'm not really used to...

Import order coding standard

PEP8 suggests that: Imports should be grouped in the following order: standard library imports related third party imports local application/library specific imports You should put a blank line...

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...

full path expansion modifier %:p doesn't get evaluated in Vim command line

In gvim, you can create custom menus easily. Those extra lines in my gvimrc add a small python 'utilities' menu. menu Python.Run <ESC>:Shell python %<cr> menu Python.Run\.\.\. <ESC>:Shell python...

Emacs flymake on Mac Yosemite

Flymake in emacs was properly working until update to Yosemite. But now it's complaining: Flymake: Failed to launch syntax check process 'pychecker' with args (<filename>_flymake.py): Searching...

Python syntax error running freshly installed `meld`

I'm installing meld as described here: sudo yum install intltool itstool gir1.2-gtksource-3.0 libxml2-utils However, when I try to run meld this error appears: File "/usr/bin/meld", line 47 ...

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...

DuplicateFlagError when trying to train tensorflow object detection api on google collaboratory

I am trying to train Tensorflow Object Detection API on my dataset containing apples and capsicum. For that, I generated the required files (TFrecords and images with annotations) and placed them...