一键导入
lint-python
Run Python lint tools, then check custom coding rules. Severity labels in Japanese.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Python lint tools, then check custom coding rules. Severity labels in Japanese.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run JavaScript/React lint tools, then check custom coding rules. Severity labels in Japanese.
Run shell lint tools, then check custom coding rules. Severity labels in Japanese.
Run TypeScript/React lint tools, then check custom coding rules. Severity labels in Japanese.
Generates commit messages and checks code quality for staged changes. Prefer gcmA alias for fast use.
| name | lint-python |
| description | Run Python lint tools, then check custom coding rules. Severity labels in Japanese. |
| allowed-tools | bash, write, edit |
Detect available tools (make, poetry, isort, autopep8, pyright, flake8, pycodestyle) and choose ONE branch:
Branch A — Makefile has lint: target:
[ -f .env ] && . ./.env; make lint 2>&1
Branch B — Poetry project ([tool.poetry] in pyproject.toml):
poetry run isort . 2>&1 || true
poetry run autopep8 --in-place --recursive . 2>&1 || true
poetry run pyright 2>&1 || true
poetry run flake8 --exclude=.venv,*/.venv/* . 2>&1 || true
Branch C — system tools only:
command -v autopep8 >/dev/null 2>&1 \
&& autopep8 --in-place --recursive . 2>&1 || true
command -v pycodestyle >/dev/null 2>&1 \
&& pycodestyle --max-line-length=79 \
$(find . -maxdepth 5 -name '*.py' \
! -path '*/.venv/*' ! -path '*/__pycache__/*') 2>&1 || true
Then review source files and scan custom rules (fix iteratively):
[高] Must fix:
typing.Dict/List/Tuple/Union (use dict[]/list[]/tuple[]/Optional[X])typing.Any — allowed when no other type exists; never omit annotations to avoid it{} for empty dict (use dict()), [] for empty list (use list())X | None syntax (use Optional[X])# ----------------------------------------------------------------------------- (79 chars)[中] Should fix:
( alone at end of line) at column 0 before -> ReturnType:from pathlib import Path (use import os.path as osp)Print summary:
==================================================
Lint complete (Python)
==================================================
Files checked : <N>
[高] Critical : <N>
[中] Important : <N>
[低] Minor : <N>
==================================================