From f9086829b89aa26bc95cdd9e9da7b559dfa0103e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:36:27 +0000 Subject: [PATCH] Update all minor versions (minor) (#1294) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update all minor versions * Ignore new issues --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Stéphane Brunner --- jsonschema_gentypes/__init__.py | 2 +- jsonschema_gentypes/cli.py | 2 +- poetry.lock | 29 +++++++++++++++-------------- pyproject.toml | 8 ++++---- 4 files changed, 21 insertions(+), 20 deletions(-) diff --git a/jsonschema_gentypes/__init__.py b/jsonschema_gentypes/__init__.py index 209edb49..5bea210f 100644 --- a/jsonschema_gentypes/__init__.py +++ b/jsonschema_gentypes/__init__.py @@ -788,7 +788,7 @@ def get_name( if not get_name.__dict__.get("names"): get_name.__dict__["names"] = set() elif output in get_name.__dict__["names"]: - output += str(random.randint(0, 9999)) # noqa: S311 + output += str(random.randint(0, 9999)) # noqa: S311 # nosec get_name.__dict__["names"].add(output) return output diff --git a/jsonschema_gentypes/cli.py b/jsonschema_gentypes/cli.py index a448c010..d0661c4c 100644 --- a/jsonschema_gentypes/cli.py +++ b/jsonschema_gentypes/cli.py @@ -57,7 +57,7 @@ def _add_type( if isinstance(type_, jsonschema_gentypes.NamedType) and type_.name(python_version) in types: if types[type_.name(python_version)] != type_: print(f"WARNING: the type {type_.name(python_version)} is already defined, it will be renamed") - type_.postfix_name(f"Gen{random.randrange(999999)}") # noqa: S311 + type_.postfix_name(f"Gen{random.randrange(999999)}") # noqa: S311 # nosec _add_type(type_, imports, types, gen, config, python_version, added_types) else: if isinstance(type_, jsonschema_gentypes.NamedType): diff --git a/poetry.lock b/poetry.lock index c3a3664c..b4781558 100644 --- a/poetry.lock +++ b/poetry.lock @@ -751,13 +751,13 @@ testing = ["pytest", "pytest-benchmark"] [[package]] name = "pre-commit" -version = "4.0.1" +version = "4.1.0" description = "A framework for managing and maintaining multi-language pre-commit hooks." optional = true python-versions = ">=3.9" files = [ - {file = "pre_commit-4.0.1-py2.py3-none-any.whl", hash = "sha256:efde913840816312445dc98787724647c65473daefe420785f885e8ed9a06878"}, - {file = "pre_commit-4.0.1.tar.gz", hash = "sha256:80905ac375958c0444c65e9cebebd948b3cdb518f335a091a670a89d652139d2"}, + {file = "pre_commit-4.1.0-py2.py3-none-any.whl", hash = "sha256:d29e7cb346295bcc1cc75fc3e92e343495e3ea0196c9ec6ba53f49f10ab6ae7b"}, + {file = "pre_commit-4.1.0.tar.gz", hash = "sha256:ae3f018575a588e30dfddfab9a05448bfbd6b73d78709617b5a2b853549716d4"}, ] [package.dependencies] @@ -769,13 +769,13 @@ virtualenv = ">=20.10.0" [[package]] name = "prospector" -version = "1.13.3" +version = "1.14.0" description = "Prospector is a tool to analyse Python code by aggregating the result of other tools." optional = false python-versions = "<4.0,>=3.9" files = [ - {file = "prospector-1.13.3-py3-none-any.whl", hash = "sha256:e7261c222ba54bc8aef8c9e31b2dcf5ed2a656c9b76fc0cceab294cd5ec3db6b"}, - {file = "prospector-1.13.3.tar.gz", hash = "sha256:36ccb13f69aa27c5c4682afd4cc46219b9e0c80723e30dc64ff30c71f7b877a1"}, + {file = "prospector-1.14.0-py3-none-any.whl", hash = "sha256:18771ee32ed9a35111c3ebcfdac24c8ac77301b14cebfffccad7906a3d983ab8"}, + {file = "prospector-1.14.0.tar.gz", hash = "sha256:de493172fc6027bef384cb450db48f6ea6bb6b3c9160e75f4ab4ecdf502518d1"}, ] [package.dependencies] @@ -822,13 +822,13 @@ files = [ [[package]] name = "prospector-profile-utils" -version = "1.14.1" +version = "1.17.0" description = "Some utility Prospector profiles." optional = false python-versions = "<4.0,>=3.9" files = [ - {file = "prospector_profile_utils-1.14.1-py3-none-any.whl", hash = "sha256:1b7d79e4293c76f9ea5107b691c888e76933aa29d33e8f8b8750dc0aeea3b657"}, - {file = "prospector_profile_utils-1.14.1.tar.gz", hash = "sha256:5447086f9a7ddba02d8ee7322baa30c80c1376328677a6593165fab23e2e4bf2"}, + {file = "prospector_profile_utils-1.17.0-py3-none-any.whl", hash = "sha256:0cb7fe9dfca2b49c21733bbc4d3aabd51c7c0890c5e636b8d2f7b81c342aef6e"}, + {file = "prospector_profile_utils-1.17.0.tar.gz", hash = "sha256:ac75faf9b13a6b6c18173cad71e6879e6ac40c5f5fda57c69f064b8a955705bd"}, ] [package.dependencies] @@ -1115,18 +1115,19 @@ files = [ [[package]] name = "referencing" -version = "0.35.1" +version = "0.36.2" description = "JSON Referencing + Python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" files = [ - {file = "referencing-0.35.1-py3-none-any.whl", hash = "sha256:eda6d3234d62814d1c64e305c1331c9a3a6132da475ab6382eaa997b21ee75de"}, - {file = "referencing-0.35.1.tar.gz", hash = "sha256:25b42124a6c8b632a425174f24087783efb348a6f1e0008e63cd4466fedf703c"}, + {file = "referencing-0.36.2-py3-none-any.whl", hash = "sha256:e8699adbbf8b5c7de96d8ffa0eb5c158b3beafce084968e2ea8bb08c6794dcd0"}, + {file = "referencing-0.36.2.tar.gz", hash = "sha256:df2e89862cd09deabbdba16944cc3f10feb6b3e6f18e902f7cc25609a34775aa"}, ] [package.dependencies] attrs = ">=22.2.0" rpds-py = ">=0.7.0" +typing-extensions = {version = ">=4.4.0", markers = "python_version < \"3.13\""} [[package]] name = "requests" @@ -1599,4 +1600,4 @@ tools = ["pre-commit"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4" -content-hash = "cd23176785552a0d151d7a24989d941b58f0bc9c2718125e5474ae3573fcc346" +content-hash = "f86123324e30d64ad8945214c4534f7185b2a2e573c949edd5c6dac6aae5d21c" diff --git a/pyproject.toml b/pyproject.toml index f1d6df95..67e6daf3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,8 +39,8 @@ requests = "2.32.3" pinyin = { version = "0.4.0", optional = true } romkan = { version = "0.2.1", optional = true } romanize = { version = "1.0.2", optional = true } -pre-commit = { version = "4.0.1", optional = true } -referencing = "0.35.1" +pre-commit = { version = "4.1.0", optional = true } +referencing = "0.36.2" [tool.poetry.extras] generate = [] @@ -48,9 +48,9 @@ tools = ["pre-commit"] extra = ['pinyin', 'romkan', 'romanize'] [tool.poetry.group.dev.dependencies] -prospector = { version = "1.13.3", extras = ["with_mypy", "with_bandit", "with_pyroma", "with_ruff"] } +prospector = { version = "1.14.0", extras = ["with_mypy", "with_bandit", "with_pyroma", "with_ruff"] } prospector-profile-duplicated = "1.10.4" -prospector-profile-utils = "1.14.1" +prospector-profile-utils = "1.17.0" pytest = "8.3.4" pytest-cov = "6.0.0" types-requests = "2.32.0.20241016"