willyd61/nautobot-v2-custom-metrics-old/ruff
Claude Code and agent skill by willyd61/nautobot-v2-custom-metrics-old
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Ruff Python linter and formatter. Covers configuration in pyproject.toml, rule selection, auto-fix, and integration with editors and CI. Use when configuring or troubleshooting Python code quality tooling. USE WHEN: user mentions "ruff", "ruff check", "ruff format", "python linting", "pyproject.toml linting", "isort alternative", "black alternative", "flake8 replacement", "python formatter" DO NOT USE FOR: ESLint/Prettier (JavaScript), mypy type checking
Install
npx vskill@latest install willyd61/nautobot-v2-custom-metrics-old/ruffSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as claude-dev-suite/claude-dev-suite/ruff.
Ruff: Python Linter & Formatter
Installation
CLI Usage
pyproject.toml Configuration
Common Rule Sets
| Set | Code | What It Checks | |
|---|---|---|---|
| pycodestyle | E, W | PEP 8 style (spacing, indentation) | |
| pyflakes | F | Undefined/unused names, imports | |
| isort | I | Import order and grouping | |
| bugbear | B | Common Python bugs and anti-patterns | |
| pyupgrade | UP | Upgrade to modern Python syntax | |
| flake8-comprehensions | C4 | Unnecessary comprehensions | |
| bandit | S | Security vulnerabilities | |
| flake8-simplify | SIM | Code simplification | |
| McCabe complexity | C90 | Function complexity | |
| Ruff-specific | RUF | Ruff's own rules |
Frequently Needed Rules
Integration with pyproject.toml (full example for Python 3.10+ project)
Pre-commit Integration
CI/CD (GitHub Actions)
Ruff vs Legacy Tools
| Old Tool | Ruff Equivalent | Notes | |
|---|---|---|---|
| flake8 | ruff check | 10-100x faster | |
| isort | ruff check --select I | Built-in | |
| black | ruff format | Compatible formatting | |
| bandit | ruff check --select S | Subset of bandit rules | |
| pyupgrade | ruff check --select UP | Built-in | |
| autoflake | ruff check --select F401 --fix | Remove unused imports |
Quick Fixes Reference
noqa Comments
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.mcp-servers/skill-loader/skills/best-practices/ruff/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/willyd61/nautobot-v2-custom-metrics-old/ruff)