← スキル一覧に戻る

python-lint-check
by arashout
⭐ 0🍴 0📅 2026年1月5日
SKILL.md
name: python-lint-check description: Use when writing or modifying Python code to verify linting and type correctness before committing
Python Lint & Type Check
Run ruff for linting and pyright for type checking.
Commands
# Lint with ruff
python -m ruff check .
# Auto-fix linting issues
python -m ruff check --fix .
# Type check with pyright
python -m pyright
Workflow
- After modifying Python files, run
python -m ruff check . - Fix issues or run with
--fixfor auto-fixable problems - Run
python -m pyrightfor type errors - Address any type errors before committing
Common Ruff Fixes
| Code | Issue | Fix |
|---|---|---|
| F401 | Unused import | Remove import |
| F841 | Unused variable | Remove or prefix with _ |
| E501 | Line too long | Break line or disable per-line |
| I001 | Import order | Run --fix |
Pyright Tips
- Use
# type: ignoresparingly for false positives - Add type hints to function signatures to catch more errors
- Check
pyrightconfig.jsonorpyproject.tomlfor config
Script Arguments
When modifying argparse arguments in any script, update the corresponding section in README.md to keep documentation in sync.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です