Skip to main content

Shared mypy configuration for teo-garcia Python templates

Project description

teo-mypy-config-shared

Shared mypy configuration for strict Python type checking

License: MIT PyPI Python

Part of the @teo-garcia/templates ecosystem


Settings

Setting Value
Target Python 3.12
Mode strict

Requirements

  • Python 3.12+
  • mypy 1.14+

Usage

Install as a dev dependency:

uv add --dev teo-mypy-config-shared

Get the path to the installed config file:

uv run teo-mypy-config-path

Use the exported config directly when you want the shared baseline without project-specific overrides:

uv run mypy --config-file "$(uv run teo-mypy-config-path)" .

For projects that need plugins or module overrides, copy the baseline into the project's own config and add local settings there. mypy does not merge multiple config files, so this package intentionally does not document an inheritance contract.

[tool.mypy]
python_version = "3.12"
strict = true
plugins = ["pydantic.mypy"]

[[tool.mypy.overrides]]
module = ["redis.*"]
ignore_missing_imports = true

Equivalent mypy.ini syntax:

[mypy]
python_version = 3.12
strict = true
plugins = pydantic.mypy

[mypy-redis.*]
ignore_missing_imports = true

Related Packages

Package Description
teo-ruff-config-shared Ruff lint and format settings
teo-pytest-config-shared pytest and coverage settings

License

MIT


Built by teo-garcia

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teo_mypy_config_shared-0.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teo_mypy_config_shared-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file teo_mypy_config_shared-0.1.0.tar.gz.

File metadata

  • Download URL: teo_mypy_config_shared-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teo_mypy_config_shared-0.1.0.tar.gz
Algorithm Hash digest
SHA256 384eafe377f040f99b19ec1a031973fc8366852381df41178d259d9de1ead30c
MD5 b111e23497716194628d3b2d357be5df
BLAKE2b-256 fa4dd1c95d9b24f25f2a36bacee9ac34c29d3b27b1104a335bdf5ab746d07f2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for teo_mypy_config_shared-0.1.0.tar.gz:

Publisher: publish.yml on teo-garcia/mypy-config-shared

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file teo_mypy_config_shared-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teo_mypy_config_shared-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e664c410d0e01cab33180a5fe4baf19e53387710a301d2d34cf9727b9141c52
MD5 6265a1ea9bffbb2ec87cda60b79b778f
BLAKE2b-256 6dd3fde18b8d3f2209dad252a99d905e74f8a019db88660bc651ebfc8fcc37d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for teo_mypy_config_shared-0.1.0-py3-none-any.whl:

Publisher: publish.yml on teo-garcia/mypy-config-shared

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page