diff --git a/pyproject.toml b/pyproject.toml index 324fba59..10d50195 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ "requests<3.0.0,>=2.32.4", "rapidfuzz<4.0.0,>=2.13.7", "pyparsing<4.0.0,>=3.2.3", - "tomlkit>=0.11.6,<0.15.0", + "tomlkit>=0.11.6,<0.16.0", "pydantic>=2.11.7,<3.0.0", "pyyaml>=6.0.2", ] diff --git a/src/twyn/config/config_handler.py b/src/twyn/config/config_handler.py index 5ab5b925..69e8ff15 100644 --- a/src/twyn/config/config_handler.py +++ b/src/twyn/config/config_handler.py @@ -225,9 +225,9 @@ def _write_config(self, toml: TOMLDocument, config: ReadTwynConfiguration) -> No if "tool" not in toml: toml.add("tool", table()) - if "twyn" not in toml["tool"]: # type: ignore[operator] - toml["tool"]["twyn"] = {} # type: ignore[index] - toml["tool"]["twyn"] = twyn_toml_data # type: ignore[index] + if "twyn" not in toml["tool"]: + toml["tool"]["twyn"] = {} + toml["tool"]["twyn"] = twyn_toml_data self._write_toml(toml) def _write_toml(self, toml: TOMLDocument) -> None: diff --git a/uv.lock b/uv.lock index 77ff841c..42e6f68b 100644 --- a/uv.lock +++ b/uv.lock @@ -2335,11 +2335,11 @@ wheels = [ [[package]] name = "tomlkit" -version = "0.14.0" +version = "0.15.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c3/af/14b24e41977adb296d6bd1fb59402cf7d60ce364f90c890bd2ec65c43b5a/tomlkit-0.14.0.tar.gz", hash = "sha256:cf00efca415dbd57575befb1f6634c4f42d2d87dbba376128adb42c121b87064", size = 187167, upload-time = "2026-01-13T01:14:53.304Z" } +sdist = { url = "https://files.pythonhosted.org/packages/51/db/03eaf4331631ef6b27d6e3c9b68c54dc6f0d63d87201fed600cc409307fd/tomlkit-0.15.0.tar.gz", hash = "sha256:7d1a9ecba3086638211b13814ea79c90dd54dd11993564376f3aa92271f5c7a3", size = 161875, upload-time = "2026-05-10T07:38:22.245Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b5/11/87d6d29fb5d237229d67973a6c9e06e048f01cf4994dee194ab0ea841814/tomlkit-0.14.0-py3-none-any.whl", hash = "sha256:592064ed85b40fa213469f81ac584f67a4f2992509a7c3ea2d632208623a3680", size = 39310, upload-time = "2026-01-13T01:14:51.965Z" }, + { url = "https://files.pythonhosted.org/packages/6a/43/8bd850ee71a191bf072e31302c73a66be413fecdd98fdcd111ecbcce13ca/tomlkit-0.15.0-py3-none-any.whl", hash = "sha256:4dbc8f0fc024412b57ced8757ac7461305126a648ff8c2c807fcb8e133a78738", size = 41328, upload-time = "2026-05-10T07:38:23.517Z" }, ] [[package]] @@ -2404,7 +2404,7 @@ requires-dist = [ { name = "rapidfuzz", specifier = ">=2.13.7,<4.0.0" }, { name = "requests", specifier = ">=2.32.4,<3.0.0" }, { name = "rich", marker = "extra == 'cli'", specifier = ">=14.0.0,<16.0.0" }, - { name = "tomlkit", specifier = ">=0.11.6,<0.15.0" }, + { name = "tomlkit", specifier = ">=0.11.6,<0.16.0" }, ] provides-extras = ["cli", "mcp"]