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: git+ssh://git@github.com/hopservices/the-hop-test
    rev: main
    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

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.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: the_hop_test-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 66aef5a009ac989a2f2add97a6d4b4b2d82949f033486c09618ba4ae38019c8e
MD5 f0c3e94b2877d5ab9b77bfe3dfa02e8f
BLAKE2b-256 35aea65cb30fd3bb4b3b438cb97f340e16336d33141242794f385d9b7cd1d0a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for the_hop_test-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f5489c983616b3b020d35cc3f1e0292c31198ecadc4ae85b22c056ece4b5237
MD5 9693c5ed8181d185e3f1f47015b24bf7
BLAKE2b-256 c9bd36cf179060d9ad8aca499afe6d8775c421a648ac4a5ca729ff8def42b181

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