Skip to content

Commit

Permalink
Update all minor versions (minor) (#1294)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
renovate[bot] and sbrunner authored Feb 3, 2025
1 parent 2ac5b8f commit f908682
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion jsonschema_gentypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion jsonschema_gentypes/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
29 changes: 15 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ 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 = []
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"
Expand Down

0 comments on commit f908682

Please sign in to comment.