Skip to content
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
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ ignore = [
"ICN001", # Use standard import naming conventions (pandas as pd, datetime as dt...)
"BLE", # Broad `Except` exception catches (intentional)
# These are all new defaults added in ruff 0.16.0. Individual tickets linked from PYTHON-5964 track enabling each one.
"FURB", # refurb
"TC", # flake8-type-checking
"TRY", # tryceratops
"INT", # flake8-gettext
Expand Down
2 changes: 1 addition & 1 deletion test/asynchronous/test_async_loop_unblocked.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def background_task():
await t

self.assertLessEqual(
sorted(latencies, reverse=True)[0],
max(latencies),
1.0,
"Background task was blocked from running",
)
17 changes: 9 additions & 8 deletions tools/synchro.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,15 @@ def main() -> None:
for f in generated_files:
print(f" {f}")

subprocess.run( # noqa: S603
[sys.executable, "-m", "ruff", "check", *generated_files, "--fix", *ruff_extra],
check=is_ci,
)
subprocess.run( # noqa: S603
[sys.executable, "-m", "ruff", "format", *generated_files, *ruff_extra],
check=is_ci,
)
if generated_files:
subprocess.run( # noqa: S603
[sys.executable, "-m", "ruff", "check", *generated_files, "--fix", *ruff_extra],
check=is_ci,
)
subprocess.run( # noqa: S603
[sys.executable, "-m", "ruff", "format", *generated_files, *ruff_extra],
check=is_ci,
)

if is_ci and generated_files:
result = subprocess.run( # noqa: S603
Expand Down
Loading