Skip to content

Conversation

@jrappen
Copy link
Collaborator

@jrappen jrappen commented Nov 1, 2025

No description provided.

Diff/diff.py Outdated
Comment on lines 74 to 75
fpath = Path(fname)
if not fname or not fpath.exists():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Path(None) raises a TypeError and bool(Path('')) is True.

@jrappen jrappen marked this pull request as draft November 3, 2025 11:05
@jrappen
Copy link
Collaborator Author

jrappen commented Nov 5, 2025

I'll fix the left-overs later tonight, thanks for the feedback.

def splitlines_keep_ends(text):
lines = text.split('\n')
from pathlib import Path
from typing import Iterable, Iterator
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ruff suggests this
PixPin_2025-11-21_16-36-04

-from typing import Iterable, Iterator
+from collections.abc import Iterable, Iterator

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll take a look later again.

v: sublime.View = win.create_output_panel(name=panel_name)
if view:
v.settings().set('word_wrap', view.settings().get('word_wrap'))
v.settings().set(key="word_wrap", value=view.settings().get(key="word_wrap"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely not a fan of adding keyword argument names everywhere. What prompted you to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants