Skip to content

chore(deps): update dependency ruff to >=0.2,<0.6 #1065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/update_to_ruff_05.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: minor
---

# Update to Ruff 0.5
4 changes: 2 additions & 2 deletions openapi_python_client/parser/properties/model_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ def _values_are_subset(first: EnumProperty, second: EnumProperty) -> bool:
def _types_are_subset(first: EnumProperty, second: Property) -> bool:
from . import IntProperty, StringProperty

if first.value_type == int and isinstance(second, IntProperty):
if first.value_type is int and isinstance(second, IntProperty):
return True
if first.value_type == str and isinstance(second, StringProperty):
if first.value_type is str and isinstance(second, StringProperty):
return True
return False

Expand Down
55 changes: 33 additions & 22 deletions pdm.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
"python-dateutil>=2.8.1,<3.0.0",
"httpx>=0.20.0,<0.28.0",
"ruamel.yaml>=0.18.6,<0.19.0",
"ruff>=0.2,<0.5",
"ruff>=0.2,<0.6",
"typing-extensions>=4.8.0,<5.0.0",
]
name = "openapi-python-client"
Expand Down
Loading