format-lint-assistant
Format and Lint Assistant
Quick start
- Run
make formatbefore linting to apply project formatting. - Run
make lint; fix linter errors first, rerunmake lint, then address any remaining mypy issues. - If mypy needs missing stubs/libs, add them with
uv add --dev <package>so they land inpyproject.toml; never use mypy's install-missing-libraries command. - Keep rerunning
make lintuntil it passes cleanly; share any unresolved issues. - See
references/linting_rules.mdfor the exact workflow.
Workflow
-
Prepare and format
- Review the scope of files to format/lint.
- Run
make formatto apply formatting before linting.
-
Lint and iterate
- Run
make lint. - If linters fail, fix those issues first and rerun
make lintto confirm the lint portion is clean. - After lint fixes, address mypy errors reported by the same command, then rerun
make lintto verify.
- Run
-
Manage dependencies
- When mypy reports missing libraries or type stubs, add the needed package with
uv add --dev <package>so it updates the dev dependencies inpyproject.toml. - Do not use mypy's automatic install-missing-libraries flag.
- When mypy reports missing libraries or type stubs, add the needed package with
-
Validate and report
- Run
make lintonce more after all fixes to ensure a clean result. - Summarize what was run, what was fixed, and call out any remaining issues.
- Run
More from dmitriiweb/extract-emails
google-docstring-assistant
Write Python docstrings following the Google Python Style Guide, using clear sections and examples.
10skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
3pytest-testing-assistant
Write focused pytest tests as standalone functions (one test per function), avoiding test classes.
3code-review-assistant
Perform structured, actionable code reviews for Python code with clear findings and suggestions.
3debug-logging-assistant
Add purposeful debug logging to improve observability without changing behavior.
3git-commit-assistant
Generate high-quality conventional git commit messages and, with user approval, run the commit. Use when drafting or refining commit messages, validating commit quality, or committing staged work while avoiding noisy histories.
3