{
  "schemaVersion": "ebb.rule.v1",
  "id": "python.package.nose.maintenance-only",
  "ecosystem": "python",
  "purl": "pkg:pypi/nose",
  "affectedVersions": "vers:pypi/*",
  "event": "deprecated",
  "severity": "high",
  "title": "nose is maintenance-only",
  "summary": "The project warns that nose has been in maintenance mode for years and recommends alternatives for new projects.",
  "replacement": "pytest, nose2, or unittest",
  "sources": [
    {
      "title": "nose note to users",
      "url": "https://nose.readthedocs.io/en/latest/",
      "accessedAt": "2026-10-16"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-14",
    "reviewedAt": "2026-10-14",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Choose one target test runner before editing tests and preserve discovery rules, fixtures, setup/teardown behavior, plugins, and command-line options."
    ],
    "steps": [
      {
        "id": "choose-test-runner",
        "title": "Choose the target runner",
        "instructions": "Select pytest, nose2, or unittest based on the suite features and existing project tooling.",
        "targets": "all"
      },
      {
        "id": "migrate-nose-usages",
        "title": "Migrate nose usages",
        "instructions": "Replace reported imports, runner calls, test_suite configuration, and nose-specific assertions or plugins.",
        "targets": "usages"
      },
      {
        "id": "replace-nose-dependency",
        "title": "Replace the dependency",
        "instructions": "Remove nose from dependency declarations and add the selected runner and required plugins.",
        "targets": "declaration"
      }
    ],
    "verification": [
      {
        "command": "python -m pytest",
        "purpose": "Run the migrated test suite with pytest when selected."
      },
      {
        "command": "python -m unittest discover",
        "purpose": "Check standard-library test discovery when applicable."
      },
      {
        "command": "python -m pip check",
        "purpose": "Check installed dependency compatibility."
      }
    ]
  }
}
