Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Kill trailing whitespaces commit hook for bzr.

Project Description

The only thing this plugin does is checks all files you’re committing and unconditionally kills trailing whitespaces from them. Additionally file ending is normalized - all empty lines at the end of file being committed are stripped and one is added (final newline is common and is expected usually).

You can install it system-wide:

pip install bzr-killtrailing

But please don’t try to uninstall it with pip, because bzrlib is not declared as a namespace by Bazaar, which means that pip will want to remove whole bzrlib (read: bazaar itself).

Alternatively, you can install it in your home directory:

mkdir -p ~/.bazaar/plugins/
cd !$
rm -rf killtrailing # clean up if you've had it before
curl | tar xf -
mv bzr-killtrailing-* killtrailing

Or, alternatively, if you have Mercurial installed, you could do that:

mkdir -p ~/.bazaar/plugins/
cd !$
hg clone killtraling

You can check if a plugin is installed and ready to work by issuing this command:

bzr plugins | grep killtrailing

That’s it! Enjoy. :)

Release History

Release History

This version
History Node


History Node


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
bzr-killtrailing-1.1.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source Nov 17, 2010

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