1
0

Replaced mypy type checker with ty

This commit is contained in:
2026-03-13 12:10:35 +00:00
parent 342d39d457
commit d800d9b7be
7 changed files with 59 additions and 99 deletions

View File

@@ -28,10 +28,10 @@ dev = [
"bandit[toml]>=1.9.4",
"black>=26.3.1",
"isort>=8.0.1",
"mypy>=1.19.1",
"pre-commit>=4.5.1",
"pytest-cov>=7.0.0",
"ruff>=0.15.6",
"ty>=0.0.22",
]
[tool.black]
@@ -58,14 +58,25 @@ src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.mypy]
python_version = "3.13"
files = ["src", "tests"]
ignore_missing_imports = true
check_untyped_defs = true
warn_unused_ignores = true
pretty = true
[tool.ty.environment]
python-version = "3.13"
root = ["./src"]
[[tool.mypy.overrides]]
module = ["content_automation.adapters.social.instagram"]
ignore_errors = true
[tool.ty.src]
include = ["src", "tests"]
[tool.ty.analysis]
replace-imports-with-any = [
"uplink.**",
"googleapiclient.**",
"google_auth_oauthlib.**",
"boto3.**",
"botocore.**",
]
[[tool.ty.overrides]]
include = ["src/content_automation/adapters/social/instagram.py"]
[tool.ty.overrides.rules]
invalid-type-form = "ignore"
empty-body = "ignore"