Skip to main content

Run the Hop Test against your python code repository

Project description

The Hop Test

At Hop Labs we strive to write high quality software. It's not easy to measure this empirically but we can measure some proximate signals for quality. That is what this tool is trying to achieve. We want to measure every thing we can about a code repository that is suggestive of high quality code.

For now we only support python projects.

Installation

You can install as a precommit hook:

# .pre-commit-hooks.yaml
repos:
-   repo: https://github.com/hopservices/the-hop-test
    rev: v0.1.2
    hooks:
    -   id: the-hop-test

You can install with pip from PyPI:

pip install the-hop-test

Usage

Run the script in the root of your repository

hoptest

Configuration

By default, the hoptest will read configuration settings from ./hoptest.toml, but you can specify where the file is with

hoptest --config path/to/hoptest.toml

An example config file looks like

# ./hoptest.toml
[tool.hoptest]
license_file = "custom-license.txt"
skip_checks = ["logging"]

Development

To build and publish to PyPI, run the following

rye build
rye publish --skip-existing

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

the_hop_test-0.2.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

the_hop_test-0.2.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file the_hop_test-0.2.0.tar.gz.

File metadata

  • Download URL: the_hop_test-0.2.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for the_hop_test-0.2.0.tar.gz
Algorithm Hash digest
SHA256 214d7a724f0972ca7c085b15ccbb3f23b7043b8390aeba4b682cf1329d049096
MD5 edb23dbc9b216c5be057e8a0b75f2a09
BLAKE2b-256 5c6f8da056fd9e3572177af4c6e2ea33eaa6456499f7d374b531ee2b090e16dc

See more details on using hashes here.

File details

Details for the file the_hop_test-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for the_hop_test-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d34e268a11bb7b1ec78324bf28b96a486a0b238c9d4b2db5af2dc52f2dd97c
MD5 7e6a68527ebf44d83885f1b207017095
BLAKE2b-256 4e459cc64eece1a59c8e8a36c4f59e0251aa6f2de8a28a7912f2155342998242

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