Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install zencheck

How to install ZenCheck

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install zencheck
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0
1.1Never BuiltWhy not?
1.0 Available View build log
Windows (64-bit)
1.0
1.1Never BuiltWhy not?
1.0 Available View build log
Mac OS X (10.5+)
1.0
1.1Never BuiltWhy not?
1.0 Available View build log
Linux (32-bit)
1.0
1.1Never BuiltWhy not?
1.0 Available View build log
Linux (64-bit)
1.1 Available View build log
1.0 Available View build log
 
Author
License
BSD
Dependencies
Imports
Lastest release
version 1.1 on Jan 9th, 2014

A simple application for syntax-checking python files. pyflakes is used for error-checking and pep8 is used for style checking (produces warnings).

Improvments Over Stock PyFlakes/pep8 With Flymake Mode

  • pyflakes warnings are now shown as flymake warnings (not the case with standard flymake/pyflakes integration)
  • integrates both pyflakes and pep8 in one command

Latest Working Versions

  • Python 2.7.3
  • pyflakes 0.5.0
  • pep8 1.3.3

Note: As long as the api's of neither pyflakes or pep8 changes, future versions should work.

Example .emacs Setup

(require 'flymake)

(custom-set-variables
 '(flymake-allowed-file-name-masks
   (quote (("\\.c\\'" flymake-simple-make-init)
           ("\\.cpp\\'" flymake-simple-make-init)
           ("\\.xml\\'" flymake-xml-init)
           ("\\.html?\\'" flymake-xml-init)
           ("\\.cs\\'" flymake-simple-make-init)
           ("\\.p[ml]\\'" flymake-perl-init)
           ("\\.php[345]?\\'" flymake-php-init)
           ("\\.h\\'" flymake-master-make-header-init flymake-master-cleanup)
           ("\\.java\\'" flymake-simple-make-java-init flymake-simple-java-cleanup)
           ("[0-9]+\\.tex\\'" flymake-master-tex-init flymake-master-cleanup)
           ("\\.tex\\'" flymake-simple-tex-init)
           ("\\.idl\\'" flymake-simple-make-init)
           ("\\.py\\'" flymake-zencheck-init)))))

(defun flymake-zencheck-init ()
  (let* ((temp-file (flymake-init-create-temp-buffer-copy
                     'flymake-create-temp-inplace))
         (local-file (file-relative-name
                      temp-file
                      (file-name-directory buffer-file-name))))
    (list "zencheck" (list local-file))))

(add-hook 'find-file-hook 'flymake-find-file-hook)

(defun flymake-init-vars-hook ()
  (setq flymake-err-line-patterns
        (cons
         (quote ("^\\(.*?\\):\\([0-9]+\\):\\([0-9]+\\):\\(.*\\)" 1 2 3 4))
         flymake-err-line-patterns)))

(add-hook 'find-file-hook 'flymake-init-vars-hook)

Credits

  • Rocky Burt (rocky AT serverzen DOT com) - maintainer

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.