Skip to main content

Whitespace checking tool

Project description


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

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


.. code-block:: bash

$ 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 `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 2:
class LabelPrinter:
^-- WSC007: File begins with newline

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

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

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

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

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


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


* You can run benchmarks and generate histogram for compare calls to each other:

.. code-block:: bash

tox -- tests/performance --benchmark-histogram

* You can run benchmarks and save results for later compare:

.. code-block:: bash

tox -- tests/performance --benchmark-save=foo

* You can run benchmarks and compare with the last saved result with fail treshold:

.. code-block:: bash

tox -- tests/performance --benchmark-histogram --benchmark-compare --benchmark-compare-fail=mean:5% --benchmark-sort=name

* You can run benchmarks and compare with the last saved result by groups:

.. code-block:: bash

tox -- tests/performance --benchmark-histogram --benchmark-compare --benchmark-group-by=func

tox -- tests/performance --benchmark-histogram --benchmark-compare --benchmark-group-by=name

.. |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

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
wscheck-1.1.1-py2-none-any.whl (9.4 kB) Copy SHA256 hash SHA256 Wheel 2.7 Nov 2, 2017
wscheck-1.1.1.tar.gz (23.5 kB) Copy SHA256 hash SHA256 Source None Nov 2, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page