commit 620c2e2e5812670a115a03c1f24b73bb4028ea9c Author: Zhongwei Li Date: Sat Nov 29 18:08:59 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..70e38be --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "python-lint", + "description": "Automatically lint, format, and type-check Python files with ruff and pyright", + "version": "2.0.0", + "author": { + "name": "Cheolwan Park", + "url": "https://github.com/cheolwanpark" + }, + "hooks": [ + "./hooks/hooks.json" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e1459f6 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python-lint + +Automatically lint, format, and type-check Python files with ruff and pyright diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..0cc95fa --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,17 @@ +{ + "description": "Automatically lint, format, and type-check Python files after editing or writing", + "hooks": { + "PostToolUse": [ + { + "matcher": "Edit|Write", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/python-lint.sh", + "timeout": 30 + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..59d8d4e --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:cheolwanpark/claude-plugins:plugins/python-lint", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "4c03b9bdd7988f03874a2919d7b678a16c26d474", + "treeHash": "47ca268ea9a84d10afc2c20a5f3312214be33bcb64628deca6c487acf7916570", + "generatedAt": "2025-11-28T10:15:00.343174Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "python-lint", + "description": "Automatically lint, format, and type-check Python files with ruff and pyright", + "version": "2.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "930cab4eead4bb10ee807a1508b6f2c78844a69af5c6dc6f98057081badf9fd1" + }, + { + "path": "hooks/hooks.json", + "sha256": "9f136363673eb45660e56c9a8ef719130cc9f9c2bc806a2cd2de97469471fe71" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "a31859a12e844b0e19ba8ac3c6bac212d433578ac2571ea11e8d4b5796802c7f" + } + ], + "dirSha256": "47ca268ea9a84d10afc2c20a5f3312214be33bcb64628deca6c487acf7916570" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file