Shared mypy configuration for teo-garcia Python templates
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters