teo-mypy-config-shared
Shared mypy configuration for strict Python type checking
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
Metadata
Release files for teo-mypy-config-shared 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teo_mypy_config_shared-0.1.0.tar.gz | 16.1 kB | With provenance | Details for teo_mypy_config_shared-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| teo_mypy_config_shared-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for teo_mypy_config_shared-0.1.0-py3-none-any.whl |
Total release size: 19.7 kB
Security for teo-mypy-config-shared 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.