{
  "id": "mypy",
  "name": "mypy",
  "homepage": "https://mypy-lang.org",
  "description": "Mypy is a static type checker for Python.",
  "executables": [
    "mypy",
    "dmypy"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/mypy/config",
      "~/.mypy.ini"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Type check",
    "description": "Type check Python files or directories with mypy. Report generators, cache tuning and daemon mode are left out.",
    "quality": "ai-draft",
    "base": "fig:mypy",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/mypy.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "targets",
        "label": "Files or directories",
        "type": "path",
        "position": 0,
        "multiple": true,
        "min": 1,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "strict",
        "label": "Enable all optional checks",
        "type": "boolean",
        "option": [
          "--strict"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ignore_missing",
        "label": "Ignore missing imports",
        "type": "boolean",
        "option": [
          "--ignore-missing-imports"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "check_untyped",
        "label": "Check bodies of untyped functions",
        "type": "boolean",
        "option": [
          "--check-untyped-defs"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "disallow_untyped",
        "label": "Disallow untyped definitions",
        "type": "boolean",
        "option": [
          "--disallow-untyped-defs"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "warn_unused_ignores",
        "label": "Warn about unused # type: ignore",
        "type": "boolean",
        "option": [
          "--warn-unused-ignores"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "warn_return_any",
        "label": "Warn about returning Any",
        "type": "boolean",
        "option": [
          "--warn-return-any"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "python_version",
        "label": "Python version (e.g. 3.12)",
        "type": "string",
        "option": [
          "--python-version"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config_file",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config-file"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "exclude",
        "label": "Exclude regex",
        "type": "string",
        "option": [
          "--exclude"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "pretty",
        "label": "Pretty error output",
        "type": "boolean",
        "option": [
          "--pretty"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "show_columns",
        "label": "Show column numbers",
        "type": "boolean",
        "option": [
          "--show-column-numbers"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_incremental",
        "label": "Disable incremental mode",
        "type": "boolean",
        "option": [
          "--no-incremental"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "check",
        "label": "Check",
        "fields": [
          "targets"
        ],
        "required": [
          "targets"
        ]
      },
      {
        "id": "strict",
        "label": "Strict check",
        "fields": [
          "targets",
          "strict"
        ],
        "required": [
          "targets"
        ],
        "set": {
          "strict": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "targets",
          "strict",
          "ignore_missing",
          "python_version",
          "config_file"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "check_untyped",
          "disallow_untyped",
          "warn_unused_ignores",
          "warn_return_any",
          "exclude",
          "pretty",
          "show_columns",
          "no_incremental"
        ]
      }
    ]
  }
}
