lint

Run Hatch-based lint, format, and quality checks on modified files.

648|537|Updated Jun 20, 2016
One-click install
npx skills add https://github.com/DataDog/dd-trace-py --skill lint-datadog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lint
Source: https://github.com/DataDog/dd-trace-py/tree/main/.claude/skills/lint
Command: npx skills add https://github.com/DataDog/dd-trace-py --skill lint-datadog

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you run targeted linting, formatting, and code quality checks on modified files, delivering fast feedback and preventing style or security issues before commits.

Core Features & Use Cases

  • Targeted validation: Run checks on changed files to save time.
  • Auto-formatting: Auto-fix style issues with the project formatter.
  • Pre-commit quality: Type, style, and security checks before pushing changes.
  • Flexible scope: Validate all changes or focus on specific files with --.

Quick Start

Run all lint checks on your current changes with: hatch run lint:checks Format and lint a specific file: hatch run lint:fmt -- path/to/file.py Check types on a specific file: hatch run lint:typing -- path/to/file.py

Frequently Asked Questions about lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run linting and formatting checks on my code changes before committing?

Linting and formatting checks catch style, type, and security issues in modified files before commits. Run all checks with `hatch run lint:checks`, or format a specific file with `hatch run lint:fmt -- path/to/file.py`. The Skill auto-fixes eligible issues and provides fast feedback on your changes.

Can I run targeted checks on only the files I've changed?

Yes, targeted validation saves time by checking only modified files instead of your entire codebase. Use `hatch run lint:checks` to validate current changes, or specify individual files with `--` syntax to focus on specific paths. This delivers fast feedback on just the code you're working on.

What types of code quality issues does this catch?

This Skill catches style inconsistencies, type errors, security vulnerabilities, spelling mistakes, and formatting problems. It integrates Hatch-based lint commands including `lint:fmt`, `lint:typing`, `lint:security`, and `lint:spelling` to provide comprehensive pre-commit validation across multiple quality dimensions.

Does this work with Python projects using Hatch?

Yes, this Skill is designed for Hatch-based projects and integrates directly with Hatch's lint command infrastructure. It runs targeted checks on modified Python files and supports auto-fixing eligible issues through the project's configured formatter and linters.

Can I auto-fix style and formatting issues automatically?

Yes, auto-formatting fixes eligible style issues with the project formatter. Run `hatch run lint:fmt -- path/to/file.py` to auto-fix a specific file, or use `hatch run lint:checks` to apply corrections across all changed files where available.

What's the difference between running all checks versus targeted validation?

Running all checks validates your entire codebase, while targeted validation focuses on modified files for faster feedback. Use `hatch run lint:checks` on changed files for efficiency during development, or run the full suite before major pushes to ensure comprehensive code quality.