py-formatter

Standardize Python formatting and linting with Black, flake8, isort, and mypy.

1|1|Updated Nov 1, 2015
One-click install
npx skills add https://github.com/s4kr4/dotfiles --skill py-formatter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: py-formatter
Source: https://github.com/s4kr4/dotfiles/tree/main/.claude/skills/py-formatter
Command: npx skills add https://github.com/s4kr4/dotfiles --skill py-formatter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes Python formatting and linting configurations across projects.

Core Features & Use Cases

  • Unified tooling: Apply Black, flake8, isort, and mypy as standard across codebases.
  • VSCode integration: Provide editor defaults to enforce formatting and linting on save.
  • Use Case: When starting a new Python project or migrating multiple repos, use this to establish a consistent setup automatically.

Quick Start

Install the recommended Python tooling: pip install black flake8 isort mypy If your project has no existing configuration files, add a minimal pyproject.toml with Black configuration, or rely on the default behavior described here. Then run the following commands on your project: black . flake8 . isort . mypy .

Frequently Asked Questions about py-formatter

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

FAQPage Schema
How do I enforce consistent Python formatting across my project?

Python formatting standardization applies Black, flake8, isort, and mypy configurations automatically to projects lacking local setup. Install these tools via pip, then run each command on your codebase to enforce consistent style, import ordering, and type checking without manual config files.

Can I use Black, flake8, and isort together in the same project?

Yes. These tools work together within a unified linting and formatting workflow. Black handles code formatting, isort organizes imports, flake8 checks style violations, and mypy validates type hints. This skill applies all four as an integrated standard across your project.

What's the best way to set up Python linting for a new project?

Create a minimal pyproject.toml with Black configuration or rely on defaults, then run black, flake8, isort, and mypy commands on your project directory. This skill automates that setup when no existing configuration exists, establishing consistent development workflows.

Does this work with VSCode for automatic formatting on save?

Yes. This skill provides VSCode integration defaults that enforce formatting and linting on save. Configure your editor to use Black, flake8, and isort extensions, and they'll apply the standardized settings automatically during development.

When should I use standardized linting across multiple repositories?

Standardized linting is essential when migrating multiple repos or maintaining consistency across a team. This skill applies Black, flake8, isort, and mypy defaults uniformly, eliminating per-project configuration overhead and ensuring uniform code quality standards.