Skip to content

Commit 15d8cad

Browse files
committed
fix: remove whitespace from blank lines
Fix W293 linting errors by removing trailing whitespace from blank lines in src/nutrient_dws/api/direct.py. This resolves the ruff linting failures in CI.
1 parent aae5cbd commit 15d8cad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/nutrient_dws/api/direct.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ def split_pdf(
284284
# Validate inputs
285285
if not page_ranges:
286286
raise ValueError("page_ranges is required")
287-
287+
288288
if len(page_ranges) > 50:
289289
raise ValueError("Maximum 50 page ranges allowed")
290-
290+
291291
if output_paths and len(output_paths) != len(page_ranges):
292292
raise ValueError("output_paths length must match page_ranges length")
293293

@@ -488,17 +488,17 @@ def delete_pdf_pages(
488488
# For remaining pages, we need to be very careful not to reference non-existent pages
489489
# The safest approach is to NOT add remaining pages automatically
490490
# Instead, we'll only add them if we're confident they exist
491-
491+
492492
# However, we can't know the document page count without another API call
493493
# Let's use a different approach: if there are existing parts, we might be done
494494
# If there are no parts yet, we need to add something
495-
495+
496496
if len(sorted_indexes) > 0:
497497
# We've processed some deletions
498498
# Only add remaining pages if we haven't deleted the very last possible pages
499499
# A very conservative approach: don't add remaining if we deleted a high-numbered page
500500
max_deleted_page = max(sorted_indexes)
501-
501+
502502
# If we're deleting page 2 or higher, and current_page is beyond that,
503503
# we're probably at or past the end of the document
504504
# Only add remaining if the max deleted page is 0 or 1 (suggesting more pages exist)

0 commit comments

Comments
 (0)