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!

Whitespace checking tool

Project Description

|PyPi| |Build| |Docs| |DependencyStatus| |CodeQuality| |Coverage| |License|

`WSCheck <>`__ is a static analysis tool for whitespaces.


``pip install wscheck``


**Check multiple files:**

.. code-block:: bash

$ wscheck pineapple.xml kiwi.js

**Exclude rules:**

.. code-block:: bash

$ wscheck --exclude WSC002 --exclude WSC003

**Get list of available rules:**

.. code-block:: bash

$ wscheck --list-rules

For details about rules, see :ref:`Rules <rules>`

**Write CheckStyle output too:**

.. code-block:: bash

$ wscheck --checkstyle results.xml pineapple.xml


.. code-block:: bash

$ wscheck examples/

.. code-block:: none

In examples/ line 5:
^-- WSC002: Tailing whitespace

In examples/ line 8:
def __generate_pdf(self):
^-- WSC003: Indentation is not multiple of 2

In examples/ line 9:
pdf_generator = _LabelPdfGenerator()
^-- WSC001: Bad line ending '\r\n'

In examples/ line 15:
--->--->os.makedirs(self.__print_cache_dir, exist_ok=True)
^-- WSC004: Indentation with non-space character

In examples/ line 21:
return os.path.join(self.__print_cache_dir, pdf_name)
^-- WSC006: Too many newline at end of file (+1)


Bugs or suggestions? Visit the `issue tracker <>`__.

.. |Build| image::
:alt: Build Status
.. |DependencyStatus| image::
:alt: Dependency Status
.. |PyPi| image::
:alt: Python Package
.. |Docs| image::
:alt: Documentation Status
.. |License| image::
:alt: License

.. |CodeQuality| image::
:alt: Code Quality
.. |Coverage| image::
:alt: Test Coverage

.. |IssueStats| image::
:alt: Issue Stats
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


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
wscheck-1.0.1-py2-none-any.whl (10.0 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jul 14, 2017
wscheck-1.0.1.tar.gz (18.3 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 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