Skip to content

Commit

Permalink
Bump ruff from 0.5.7 to 0.6.3 (#1047)
Browse files Browse the repository at this point in the history
* Bump ruff from 0.5.7 to 0.6.3

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.7 to 0.6.3.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.5.7...0.6.3)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump pre-commit version of ruff

* Fix linting

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <[email protected]>
  • Loading branch information
dependabot[bot] and MartinHjelmare authored Sep 6, 2024
1 parent dc19e8c commit 85e77fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.6.3
hooks:
- id: ruff
files: ^(scripts|test|zwave_js_server)/.+\.py$
Expand Down
2 changes: 1 addition & 1 deletion requirements_lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ mypy==1.11.2
pylint==3.2.7
pylint-strict-informational==0.1
pre-commit==3.8.0
ruff==0.5.7
ruff==0.6.3
10 changes: 6 additions & 4 deletions scripts/run_mock_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ async def server_handler(

version_info: VersionInfoDataType = self.network_state_dump[0]
# adjust min/max schemas if needed to get things to work
if MAX_SERVER_SCHEMA_VERSION > version_info["maxSchemaVersion"]:
version_info["maxSchemaVersion"] = MAX_SERVER_SCHEMA_VERSION
if MIN_SERVER_SCHEMA_VERSION < version_info["minSchemaVersion"]:
version_info["minSchemaVersion"] = MIN_SERVER_SCHEMA_VERSION
version_info["maxSchemaVersion"] = max(
MAX_SERVER_SCHEMA_VERSION, version_info["maxSchemaVersion"]
)
version_info["minSchemaVersion"] = min(
MIN_SERVER_SCHEMA_VERSION, version_info["minSchemaVersion"]
)
await self.send_json(version_info)

async for msg in ws_resp:
Expand Down

0 comments on commit 85e77fa

Please sign in to comment.