Skip to content

Commit

Permalink
ci(*:skip): update ruff requirement from ==0.1.9 to ==0.4.5 (#3493)
Browse files Browse the repository at this point in the history
* chore(deps-dev): update ruff requirement from ==0.1.9 to ==0.4.5

Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.1.9...v0.4.5)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
...

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

* Fix ruff issues

* Try removing type hints

* Reformat

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Beauville <[email protected]>
Co-authored-by: Taner Topal <[email protected]>
Co-authored-by: Javier <[email protected]>
  • Loading branch information
4 people authored Jan 6, 2025
1 parent 41a96fa commit 99b1614
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ furo = "==2024.8.6"
sphinx-reredirects = "==0.1.5"
nbsphinx = "==0.9.5"
nbstripout = "==0.6.1"
ruff = "==0.1.9"
ruff = "==0.4.5"
sphinx-argparse = "==0.4.0"
pipreqs = "==0.4.13"
mdformat = "==0.7.18"
Expand Down Expand Up @@ -201,9 +201,6 @@ wrap-descriptions = 88
[tool.ruff]
target-version = "py39"
line-length = 88
select = ["D", "E", "F", "W", "B", "ISC", "C4", "UP"]
fixable = ["D", "E", "F", "W", "B", "ISC", "C4", "UP"]
ignore = ["B024", "B027", "D205", "D209"]
exclude = [
".bzr",
".direnv",
Expand All @@ -228,10 +225,15 @@ exclude = [
"proto",
]

[tool.ruff.pydocstyle]
[tool.ruff.lint]
select = ["D", "E", "F", "W", "B", "ISC", "C4", "UP"]
fixable = ["D", "E", "F", "W", "B", "ISC", "C4", "UP"]
ignore = ["B024", "B027", "D205", "D209"]

[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"src/py/flwr/server/strategy/*.py" = ["E501"]

[tool.docsig]
Expand Down
4 changes: 2 additions & 2 deletions src/py/flwr/server/superlink/fleet/vce/vce_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ def run_api(
f_stop: threading.Event,
) -> None:
"""Run the VCE."""
taskins_queue: "Queue[TaskIns]" = Queue()
taskres_queue: "Queue[TaskRes]" = Queue()
taskins_queue: Queue[TaskIns] = Queue()
taskres_queue: Queue[TaskRes] = Queue()

try:

Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr/simulation/run_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def _main_loop(
# Initialize Driver
driver = InMemoryDriver(state_factory=state_factory)
driver.set_run(run_id=run.run_id)
output_context_queue: "Queue[Context]" = Queue()
output_context_queue: Queue[Context] = Queue()

# Get and run ServerApp thread
serverapp_th = run_serverapp_th(
Expand Down

0 comments on commit 99b1614

Please sign in to comment.