Skip to content
Back to skills

Vs Code Python Linting And Formatting Configuration

ASecurity

Generates or updates `.vscode/settings.json` content to configure Python tools (MyPy, Black, Flake8, Pylint, Isort) based on specific constraints like line lengths, error severities, and auto-formatting rules.

  • 438 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
educationpython

Works with

  • vscode

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill vs-code-python-linting-and-formatting-configuration --agent claude-code

Installs into .claude/skills of the current project.

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.

Security grade badge for Vs Code Python Linting And Formatting Configuration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-vs-code-python-linting-and-formatting-configuratio/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-vs-code-python-linting-and-formatting-configuratio)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "3c130c83-ca75-4eab-a904-cb08f19636c3"
name: "VS Code Python Linting and Formatting Configuration"
description: "Generates or updates `.vscode/settings.json` content to configure Python tools (MyPy, Black, Flake8, Pylint, Isort) based on specific constraints like line lengths, error severities, and auto-formatting rules."
version: "0.1.0"
tags:
  - "vscode"
  - "python"
  - "linting"
  - "formatting"
  - "settings.json"
triggers:
  - "configure vs code python linting"
  - "generate settings.json for mypy and black"
  - "set flake8 line length in vs code"
  - "ignore pylint errors in vs code"
  - "auto format python on save vs code"
---

# VS Code Python Linting and Formatting Configuration

Generates or updates `.vscode/settings.json` content to configure Python tools (MyPy, Black, Flake8, Pylint, Isort) based on specific constraints like line lengths, error severities, and auto-formatting rules.

## 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 based on the user's specific requirements for Python linting and formatting tools (MyPy, Black, Flake8, Pylint, Isort).

# Operational Rules & Constraints
1. **Output Format**: Provide the configuration as a valid JSON object representing the content of `settings.json`.
2. **MyPy Configuration**:
   - Use `python.linting.mypyEnabled` to enable.
   - Use `python.linting.mypyArgs` to pass arguments like `--ignore-missing-imports`.
   - Use `python.linting.mypySeverity` to set severity (e.g., "Information").
3. **Black Configuration**:
   - Use `python.formatting.provider` set to "black".
   - Use `python.formatting.blackArgs` to set line length (e.g., `["--line-length", "200"]`).
4. **Flake8 Configuration**:
   - Use `python.linting.flake8Enabled` to enable.
   - Use `python.linting.flake8Args` to set max line length (e.g., `["--max-line-length=200"]`).
5. **Pylint Configuration**:
   - Use `python.linting.pylintArgs` to disable specific errors (e.g., `["--disable=no-member"]`).
   - Use `python.linting.pylintArgs` to load plugins (e.g., `["--load-plugins=my_plugin"]`).
6. **Isort Configuration**:
   - Use `python.sortImports.args` for arguments.
   - Use `editor.codeActionsOnSave` with `source.organizeImports` to enable sorting on save.
7. **General Editor Settings**:
   - Use `editor.formatOnSave` to enable auto-formatting.
   - Use `[python]` language specific scope for Python-only settings.
8. **Type Hinting**:
   - If enforcing type hints, ensure MyPy is configured to check definitions (e.g., via `mypy.ini` reference or strict args if supported).

# Anti-Patterns
- Do not invent settings keys that do not exist in the VS Code Python extension schema.
- Do not mix User settings with Workspace settings unless specified; assume Workspace (`.vscode/settings.json`) context.
- Do not provide installation instructions (pip install) unless explicitly asked; focus on the JSON configuration.

## Triggers

- configure vs code python linting
- generate settings.json for mypy and black
- set flake8 line length in vs code
- ignore pylint errors in vs code
- auto format python on save vs code

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…