Skip to content

Update CONTRIBUTING for the new detector interface and test deprecation notes #181

Closed

Description

@hslev

Parent: #179 · Epic: #126 · Blocked by: #174, #180
Branch from stateless_core; open the PR against it.

Problem

CONTRIBUTING.md still tells contributors to add a detector by editing factory.py and make_detector. Nothing checks that every deprecated name has its docstring note.

Current behavior

  • CONTRIBUTING.md "Project structure" and the "New detection methods" item describe factory.py / make_detector.
  • lettucedetect/detectors/factory.py:10 is the old entry point.

Steps

  1. Rewrite "Project structure" and "New detection methods" to describe implementing detect and registering in the registry (registry.py), and to point to the contract suite.
  2. Add a test that reads the "Deprecated" section of CHANGELOG.md, resolves each listed name, and asserts its docstring contains .. deprecated:: plus the replacement and removal version.

Acceptance criteria

  • CONTRIBUTING.md no longer mentions factory.py/make_detector as the way to add a detector.
  • The walking test fails if a listed name loses its note.
  • No production code changes.

Start here

grep -n "factory\|make_detector" CONTRIBUTING.md

Activity

  1. added theissue type on Nov 5, 2026
  2. added
    ready-for-agent
    on Nov 5, 2026
  3. adaamko commented on Nov 22, 2026

    @adaamko
    Collaborator

    Done in #202, merged into stateless_core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions