Files
slither/plugin_example/README.md
Dan GuidoandClaude Opus 4.5 94ea114cee Modernize plugin_example to use pyproject.toml
Replace legacy setup.py with modern pyproject.toml using hatchling
build backend. Update README with current installation instructions.

Fixes #2854

Co-Authored-By: Claude Opus 4.5 <[email protected]>
2026-01-15 02:18:22 -05:00

684 B

Slither, Plugin Example

This repository contains an example of plugin for Slither.

See the detector documentation.

Architecture

  • pyproject.toml: Contains the plugin information and dependencies
  • slither_my_plugin/__init__.py: Contains make_plugin(). The function must return the list of new detectors and printers
  • slither_my_plugin/detectors/example.py: Detector plugin skeleton.

Installation

Once these files are updated with your plugin, install it in a virtual environment:

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -e .