Skip to main content

open-harness

The full open-harness suite in a single pip install. Installs all five code-quality tools at once: linelens, dupelens, secretlens, testlens, scopelens.

Part of the open-harness monorepo. Español abajo.

Same suite, other ecosystems: the binaries shipped here are also published on npm (@open_harness/open-harness) for Node/TypeScript projects and on Packagist (open-harness/open-harness) for PHP/Composer projects. Pick the registry that matches your stack — the underlying tools and config formats are identical.

Install

pip install open-harness-suite

pip resolves the dependency tree and downloads the right native wheel per platform for each tool (Linux x86_64, macOS arm64, macOS x86_64, Windows x86_64).

What you get

Tool Purpose
linelens File length linter — flags files over a configurable line limit.
dupelens Code duplication detector (Rabin-Karp, language-agnostic, bounded memory budget).
secretlens Secret and credential detector (AWS keys, GitHub tokens, JWT, PEM, …).
testlens Test coverage detector — finds source files without tests, 9 languages.
scopelens Per-PR file- and line-budget gate over git — counts the branch-vs-base diff at pre-commit.

After install, all five binaries live in your venv's bin/:

linelens   check
dupelens   check
secretlens check
testlens   check --lang python
scopelens  check

Configure from pyproject.toml

Each tool will read its config from [tool.<name>] inside your pyproject.toml (planned, see roadmap). Today, configuration goes in <tool>.json files at the repo root:

// linelens.json
{ "default": { "maxLines": 100 } }

Precedence per tool: --config <path> > dedicated *.json > pyproject.toml table > built-in defaults.

Run all five as a single CI gate

# GitHub Actions / GitLab CI / etc.
- pip install open-harness-suite
- linelens   check --fail
- dupelens   check --fail
- secretlens check --fail
- testlens   check --fail --lang python
- scopelens  check --fail
# .pre-commit-config.yaml
repos:
  - repo: local
    hooks:
      - id: linelens
        name: linelens
        entry: linelens check --fail --no-color
        language: system
        pass_filenames: false
      - id: dupelens
        name: dupelens
        entry: dupelens check --fail --no-color
        language: system
        pass_filenames: false
      - id: secretlens
        name: secretlens
        entry: secretlens check --fail --no-color
        language: system
        pass_filenames: false
      - id: testlens
        name: testlens
        entry: testlens check --fail --lang python
        language: system
        pass_filenames: false

Per-tool docs

Each tool ships in three ecosystems with identical behavior. Pick the registry that matches your project's stack:

Tool PyPI (Python) npm (Node/TS) Packagist (PHP)
linelens open-harness-linelens @open_harness/linelens open-harness/linelens
dupelens open-harness-dupelens @open_harness/dupelens open-harness/dupelens
secretlens open-harness-secretlens @open_harness/secretlens open-harness/secretlens
testlens open-harness-testlens @open_harness/testlens open-harness/testlens
scopelens open-harness-scopelens @open_harness/scopelens open-harness/scopelens

Español

La suite completa de open-harness en un solo pip install. Instala los cinco tools de calidad de código: linelens, dupelens, secretlens, testlens, scopelens.

Parte del monorepo open-harness.

Instalación

pip install open-harness-suite

pip descarga automáticamente la wheel nativa correcta para tu plataforma por cada tool (Linux x86_64, macOS arm64, macOS x86_64, Windows x86_64).

Qué incluye

Los 5 binarios disponibles en el bin/ de tu venv tras el install: linelens, dupelens, secretlens, testlens, scopelens.

Configurá desde pyproject.toml

Cada tool leerá su config desde [tool.<name>] dentro de tu pyproject.toml (roadmap). Hoy la configuración va en archivos <tool>.json en la raíz del repo.

CI / pre-commit

Sirve con GitHub Actions, GitLab CI o el framework pre-commit (snippets arriba).

License

MIT — see the main repository.

Metadata

Release files for open-harness-suite 0.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for open-harness-suite 0.3.6
File Size Uploaded Provenance Actions
open_harness_suite-0.3.6.tar.gz 4.9 kB Without provenance Details for open_harness_suite-0.3.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for open-harness-suite 0.3.6
File Interpreter ABI Platform Actions
open_harness_suite-0.3.6-py3-none-any.whl Python 3 none any Details for open_harness_suite-0.3.6-py3-none-any.whl

Total release size: 9.9 kB

Release files / open_harness_suite-0.3.6.tar.gz

Download URL open_harness_suite-0.3.6.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8bae232330db6ac62bcd16f141a5802d19edde8477822d8a145a990413b6d727
BLAKE2b-256 checksum
How to use checksums
45de78402b4ac70e3f0ed6cb7d696dfe3e41fd2d4bf523a304e7b6a7dcc8c8ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Release files / open_harness_suite-0.3.6-py3-none-any.whl

Download URL open_harness_suite-0.3.6-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9bba27c555d0f3f55f8160c4565edd51fb195a42f952187ca8e3d7ef00cb5dc
BLAKE2b-256 checksum
How to use checksums
48ca87f1fda3cc767bea06493f92156bd7b4f32a173d33eda0bdcc91a0cfd91f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Security for open-harness-suite 0.3.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page