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"
main_git_branch = "trunk"
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.1.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: the_hop_test-0.1.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for the_hop_test-0.1.2.tar.gz
Algorithm Hash digest
SHA256 055ae46c16dc366e925b60c634d0abe4b522a6afb9a8d859f06efd65a7263b80
MD5 d39f3a1d872e32e3afd79fde08f3aedd
BLAKE2b-256 49c496c0c29e6077135af53a92022ffe029c11d05459331f84022bc2bf02ef20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for the_hop_test-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 580f5f6484caa7550b680b6c86e79c7c2ad10ac9ed04635069879bf0ce9519c9
MD5 f6b3d2f1c31a5f9a72731dbc5776fa2c
BLAKE2b-256 1739b9e439dc3e468526da86a94bd90a78d1d3f8439eb58cf0b66ba7d7e0912c

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