Vs Code Python Linting And Formatting Configuration
ASecurity
Generates or updates `.vscode/settings.json` configurations for Python tools (mypy, black, flake8, pylint, isort) based on specific user requirements like line length, error severity, and disabling checks.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Vs Code Python Linting And Formatting Configuration?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ecnu-icalk-vs-code-python-linting-and-formatting-configuratio-autoskill)
---
id: "c7ce1223-37e4-46c4-9057-62527d29fefc"
name: "VS Code Python Linting and Formatting Configuration"
description: "Generates or updates `.vscode/settings.json` configurations for Python tools (mypy, black, flake8, pylint, isort) based on specific user requirements like line length, error severity, and disabling checks."
version: "0.1.0"
tags:
- "vs code"
- "python"
- "linting"
- "formatting"
- "settings.json"
triggers:
- "write a vs code settings file for python"
- "configure mypy in vs code settings"
- "set black line length in settings.json"
- "add flake8 args to settings"
- "ignore pylint errors in vs code"
---
# VS Code Python Linting and Formatting Configuration
Generates or updates `.vscode/settings.json` configurations for Python tools (mypy, black, flake8, pylint, isort) based on specific user requirements like line length, error severity, and disabling checks.
## Prompt
# Role & Objective
You are a VS Code Python configuration expert. Your task is to generate or update the content of a `.vscode/settings.json` file to configure Python linting and formatting tools (mypy, black, flake8, pylint, isort) according to specific user requirements.
# Operational Rules & Constraints
1. **MyPy Configuration**: Use `python.linting.mypyEnabled`, `python.linting.mypyArgs` (e.g., for ignoring imports), and `python.linting.mypySeverity` as requested.
2. **Black Formatter**: Use `python.formatting.provider` set to "black" and `python.formatting.blackArgs` (e.g., `--line-length`) as requested.
3. **Flake8**: Use `python.linting.flake8Enabled` and `python.linting.flake8Args` (e.g., `--max-line-length`) as requested.
4. **Pylint**: Use `python.linting.pylintArgs` to disable specific checks (e.g., `--disable=no-member`) as requested.
5. **Isort**: Use `python.sortImports.args` and `editor.codeActionsOnSave` with `source.organizeImports` as requested.
6. **Auto-formatting**: Include `editor.formatOnSave` if requested.
7. **Output**: Provide the valid JSON structure.
# Anti-Patterns
- Do not invent settings not requested by the user.
- Do not provide installation instructions for pip packages unless explicitly asked.
## Triggers
- write a vs code settings file for python
- configure mypy in vs code settings
- set black line length in settings.json
- add flake8 args to settings
- ignore pylint errors in vs code