python / python/mypy

Add flag to list all supported error codes

Open
#7,342 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature priority-1-normal topic-usability
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

Add flag such as --list-error-codes that prints a list of available error codes and short descriptions. Group error codes so that plugin-related are (can be) shown in separate sections, for clarity.

This would be in addition documenting error codes in the docs. One reason for having this option is the ability to show also error codes added by plugins.

Maybe also show which error codes are enabled at the moment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing mypy's command-line option handling, error-code registry, and plugin loading paths; the issue names no files or tests. Define how --list-error-codes should group built-in and plugin codes, whether it reports currently enabled codes, and what output marks the feature complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.