diff --git a/poetry.lock b/poetry.lock index 6bb9734..709e2f0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1202,4 +1202,4 @@ test = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-it [metadata] lock-version = "2.1" python-versions = ">=3.9" -content-hash = "0eec9d00c51b390c077534841b531d85c22a7aa138e622b20525166f6a628967" +content-hash = "fffe966c3b41e58d934cccdcf0a556dea4d158d927e0a043f24c34e13a2e9762" diff --git a/pyproject.toml b/pyproject.toml index c54acdf..a1989e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,18 +1,21 @@ -[tool.poetry] +[project] name = "tomlkit" version = "0.15.1" description = "Style preserving TOML library" authors = [ - "Sébastien Eustace ", - "Frost Ming " + { name = "Sébastien Eustace", email = "sebastien@eustace.io" }, + { name = "Frost Ming", email = "me@frostming.com" } ] license = "MIT" readme = "README.md" +requires-python = ">=3.9" -homepage = "https://github.com/python-poetry/tomlkit" -repository = "https://github.com/python-poetry/tomlkit" +[project.urls] +Homepage = "https://github.com/python-poetry/tomlkit" +Repository = "https://github.com/python-poetry/tomlkit" +[tool.poetry] include = [ { path = "tomlkit/py.typed" }, { path = "tests", format = "sdist" }, @@ -20,9 +23,6 @@ include = [ { path = "CHANGELOG.md", format = "sdist" }, ] -[tool.poetry.dependencies] -python = ">=3.9" - [tool.poetry.group.dev.dependencies] pytest = "^7.2.0" pytest-cov = "^4.0.0" @@ -64,5 +64,5 @@ enable_error_code = [ ] [build-system] -requires = ["poetry-core>=1.0.0a9"] +requires = ["poetry-core>=2.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/tests/test_items.py b/tests/test_items.py index f6377d0..d7c06fb 100644 --- a/tests/test_items.py +++ b/tests/test_items.py @@ -141,7 +141,7 @@ def test_aot_unwrap() -> None: d = item([{"a": "A"}, {"b": "B"}]) unwrapped = d.unwrap() assert_is_ppo(unwrapped, list) - for du, _ in zip(unwrapped, d): # noqa: B905 + for du, _ in zip(unwrapped, d): assert_is_ppo(du, dict) for ku in du: vu = du[ku] diff --git a/tomlkit/container.py b/tomlkit/container.py index 8ff30d9..013358e 100644 --- a/tomlkit/container.py +++ b/tomlkit/container.py @@ -1278,7 +1278,7 @@ def _equal_with_nan(left: Any, right: Any) -> bool: if isinstance(left, list) and isinstance(right, list): if len(left) != len(right): return False - return all(_equal_with_nan(l, r) for l, r in zip(left, right)) # noqa: B905, E741 + return all(_equal_with_nan(l, r) for l, r in zip(left, right)) # noqa: E741 if isinstance(left, float) and isinstance(right, float): if math.isnan(left) and math.isnan(right):