Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

A sample Python project

Project Description

Introduction

The pyempt package is a python emacs package for type checking and other syntax analysis. It is basically a simple wrapper around other python syntax checkers to simplify the process of calling pylint, pep8, etc. from something like emacs flymake.

In principle, you could do all of this with a a few simple scripts. It’s nice being able to pip install something that works and collaborate on improvements, however, and that is what pyempt is for.

Installation

To install pyempt, first do something like pip install pyempt or sudo pip install pyempt. Then add something like the following to your ~/.emacs file to run pyempt.

(when (load "flymake" t)
  (defun flymake-pyempt-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 "pyempt"  (list local-file))))
   (add-to-list 'flymake-allowed-file-name-masks
             '("\\.py\\'" flymake-pyempt-init)))

(add-to-list 'flymake-allowed-file-name-masks
  '("\\.py\\'" flymake-pyempt-init))

;; Uncomment following line if you want flymake to start on file load
;;(add-hook 'find-file-hook 'flymake-find-file-hook)

After you restart emacs or reload your init file, flymake should automatically start and call pyempt.

Troubleshooting

If you have problems, the first thing to do is to try and run pyempt manually via something like

pyempt <FILE_TO_CHECK>

You can turn on logging via

pyempt <FILE_TO_CHECK> --log_level 0

You can get further help on the command line program via

pyempt --help

Forking

If you want to fork pyempt, you may find the following useful:

  1. The README.md file is the main file. Generate the rst version via something like pandoc README.md -t rst > README.rst
  2. Upload to pypi via something like rm -f dist/* && python3 setup.py sdist && twine upload dist/*
Release History

Release History

This version
History Node

1.0.22

History Node

1.0.21

History Node

1.0.20

History Node

1.0.19

History Node

1.0.18

History Node

1.0.17

History Node

1.0.16

History Node

1.0.15

History Node

1.0.14

History Node

1.0.13

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyempt-1.0.22.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source Apr 23, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting