Skip to main content

py3kwarn travis

py3kwarn is a small wrapper around lib2to3 to help write Python3 compatible code. It provides flake8-style warning messages.

See the lib2to3 documentation for information on warning messages.

Pull requests are welcome!

Installation

Requires Python 2.7+

$ pip install py3kwarn

…or to install from the git repository:

$ git clone git://github.com/liamcurry/py3kwarn.git
$ cd py3kwarn
$ make install

Usage from the command line

$ py3kwarn [filename]

Usage with vim

To use with vim, check out my syntastic fork which adds py3kwarn as a syntax checker for python. If you want to use py3kwarn and syntastic with another syntax checker (like flake8), then you will have to add this to your vim config:

let g:syntastic_python_checkers=['flake8', 'py3kwarn']

TODO

  • An option for friendlier messages would be nice.

  • A flake8 extension.

  • Use argparse to add some smarter options.

  • Better docs

  • Make it work with Python 2.6

Metadata

Release files for py3kwarn 0.1.2

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

Source distribution (sdist)

Source distribution for py3kwarn 0.1.2
File Size Uploaded
py3kwarn-0.1.2.tar.gz 5.1 kB Details

Release files / py3kwarn-0.1.2.tar.gz

Download URL py3kwarn-0.1.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1b0ce49557d55c7daea1fe008df140d09d63da3989d15bf451bd707539ebacde
BLAKE2b-256 checksum
How to use checksums
407efdc017a957f4fc63d717b642fbed1b3568f9a134e99a43f5f05f633550b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4

1 release file

0.3

1 release file

0.2.3

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

This release

0.1.2 This release

1 release file

0.1.1

2 release files

0.1

2 release files

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