Skip to main content

Zencheck

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

Metadata

Release files for ZenCheck 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ZenCheck 1.1
File Size Uploaded Provenance Actions
ZenCheck-1.1.tar.gz 3.8 kB Without provenance Details for ZenCheck-1.1.tar.gz

Release files / ZenCheck-1.1.tar.gz

Download URL ZenCheck-1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7c865b906ed0522f4d0b95bed29c7b6660d0454342c681f88f6e7a637610ff9f
BLAKE2b-256 checksum
How to use checksums
5fa1b6bee88cb75a67b238cf9cd3b713156b57f8d2c6f161c81fd0492ea32a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ZenCheck 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page