Event Hooks

format-and-lint

1 event · 2 hooks

Install
1
Install the plugin
$
npx claudepluginhub werdnum/claude-code-plugins --plugin format-and-lint

Want just this hook?

Add to a custom plugin, then install with one command.

Risk Indicators
Modifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/format-and-lint.py",
          "timeout": 15000
        }
      ],
      "matcher": "Edit|Write|NotebookEdit"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/check-linter-ignores.py",
          "timeout": 5000
        }
      ],
      "matcher": "Edit|Write"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 2
  },
  "eventStats": {
    "PostToolUse": 2
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 2,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Stars0
Forks0
Last CommitNov 20, 2025
Actions

Similar Hooks