Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- run: ruff check

- name: Run mypy (only PyQt6 + recent Python)
run: mypy gitfourchette
run: mypy
if: ${{ matrix.qt == 'pyqt6' && matrix.py >= '3.13' }}

- name: Unit tests
Expand Down
2 changes: 1 addition & 1 deletion gitfourchette/filelists/filelistmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def matchPathspec(self, pattern: str) -> str:
return next(d.new.path for d in self.deltas if d.new.matchPathspec(pattern))

# Try old side (but return path from *new* side)
with suppress(StopIteration):
with suppress(StopIteration): # type: ignore[unreachable]
return next(d.new.path for d in self.deltas if d.old.matchPathspec(pattern))

return ""
4 changes: 2 additions & 2 deletions gitfourchette/gitdriver/gitdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def diffFormattingArgs() -> list[str]:
return ["--ignore-all-space"]
if m == WhitespaceMode.IgnoreCrAtEol:
return ["--ignore-cr-at-eol"]
return []
raise NotImplementedError(f"unsupported WhitespaceMode {m}")

@classmethod
def buildDiffCommand(
Expand Down Expand Up @@ -367,7 +367,7 @@ def buildDiffCommand(
tokens.append(str(b))

else:
assert delta is None
assert delta is None # type: ignore[unreachable]

return tokens

Expand Down
2 changes: 1 addition & 1 deletion gitfourchette/graph/graphbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def _stabilizeTrickle(trickle: GraphTrickle, startRow: int, newCommitSequence: l

# See if finished (not too often - expensive)
if ((row & 0xFF) == 0) and trickle.done:
return row
return row # type: ignore[unreachable]

@property
def hiddenCommits(self):
Expand Down
Loading