Skip to main content

Automatically verify Python code using CrossHair in Thonny.

Project description

Continuous Integration - Ubuntu Continuous Integration - OSX Continuous Integration - Windows Test coverage PyPI - version PyPI - Python Version

Thonny-crosshair is a plug-in for Thonny IDE to automatically test Python code using CrossHair.

Installation

In Thonny

The plug-in can be easily installed via Thonny. Go to Tools menu and select Manage plug-ins...:

Tools -> Manage plug-ins...

TODO: screenshot Search for thonny-crosshair on PyPI and click on the link to install it:

Search on PyPI

With pip

In your virtual environment, invoke:

pip install --user thonny-crosshair

Usage

To check all the functions in the file with CrossHair, go to Tools menu and select Check the current file with CrossHair:

Tools -> Check

All changes to the file will be saved prior to executing the tests. If you prefer, you can undo them.

TODO: capture The check will be executed in the Thonny shell:

Shell running the tests

You can stop the check with the “Stop” sign:

Stop the checks

Sometimes it is practical to check only a single function (e.g., if it takes too long to check the whole file). In that case, move the caret to the body of the function that you would like to verify, go to Tools menu and select Check the function under the caret with CrossHair:

Tools -> Check at

TODO: capture Additionally, CrossHair can check your code while you type and immediately warn you of coding mistakes. To check the current file continuously, go to Tools menu and select Check the current file with CrossHair continuously:

Tools -> Watch

Contributing

Feature requests or bug reports are always very, very welcome!

Please see quickly if the issue does not already exist in the issue section and, if not, create a new issue.

You can also contribute in code. Please see contributing.rst.

Versioning

We follow a bit unusual semantic versioning schema:

  • X is the oldest supported version of CrossHair,

  • Y is the minor version (new or modified features), and

  • Z is the patch version (only bug fixes).

Project details


Download files

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

Source Distribution

thonny-crosshair-0.0.1a2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

thonny_crosshair-0.0.1a2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file thonny-crosshair-0.0.1a2.tar.gz.

File metadata

  • Download URL: thonny-crosshair-0.0.1a2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for thonny-crosshair-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 ce2c52c40500fe09326abb0ea541d2cf4e701d039f66e879fe2dbfc58f375232
MD5 a8ca7fd233684ecac350f44b67a30829
BLAKE2b-256 b2a065ec556416e4d7d815418471f1ff265c8f83b8fb32e304b2b6e62417b026

See more details on using hashes here.

File details

Details for the file thonny_crosshair-0.0.1a2-py3-none-any.whl.

File metadata

  • Download URL: thonny_crosshair-0.0.1a2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for thonny_crosshair-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d19c7de60ada4a186b94c26cf3252d4b04b69ef5aac77f974e60ff4db56f73f
MD5 5e1d44d5aa40890cc18f814863cd6c0e
BLAKE2b-256 ca7cd2b131fae3c05ff028eff1eac0bab6bcc02a926d297fad825f200fb99b9b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page