From 2087460a7f270be410edb76262162344908a72b5 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Wed, 25 Jun 2025 00:21:11 +0200 Subject: [PATCH] Fix ruff issues: remove unused variables and empty comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove empty comment in git_time_tracker/format/cli.py:61 - Remove unused max_title_parts in git_time_tracker/format/icalendar.py:28 - Remove unused max_title_parts in git_time_tracker/source/csv_file.py:14 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- git_time_tracker/format/cli.py | 2 -- git_time_tracker/format/icalendar.py | 2 -- git_time_tracker/source/csv_file.py | 1 - 3 files changed, 5 deletions(-) diff --git a/git_time_tracker/format/cli.py b/git_time_tracker/format/cli.py index 44605f7..b700358 100644 --- a/git_time_tracker/format/cli.py +++ b/git_time_tracker/format/cli.py @@ -57,8 +57,6 @@ def generate_report( time_and_label = [(duration, label) for label, duration in time_per_label.items()] time_and_label.sort(reverse=True) - - # yield '-' * LINE_LENGTH yield '\n' for total_time, label in time_and_label: diff --git a/git_time_tracker/format/icalendar.py b/git_time_tracker/format/icalendar.py index 0bb1559..8472e0d 100644 --- a/git_time_tracker/format/icalendar.py +++ b/git_time_tracker/format/icalendar.py @@ -25,8 +25,6 @@ def create_title(sample: RealizedActivitySample) -> tuple[str, str]: def generate_calendar( samples: list[RealizedActivitySample], ) -> icalendar.Calendar: - max_title_parts = 2 - cal = icalendar.Calendar() cal.add('prodid', '-//personal_data_calendar//example.org//') cal.add('version', '2.0') diff --git a/git_time_tracker/source/csv_file.py b/git_time_tracker/source/csv_file.py index f65ee6b..ab36b66 100644 --- a/git_time_tracker/source/csv_file.py +++ b/git_time_tracker/source/csv_file.py @@ -11,7 +11,6 @@ logger = getLogger(__name__) def iterate_samples_from_dicts(rows: list[dict[str, Any]]) -> Iterator[ActivitySample]: assert len(rows) > 0 - max_title_parts = 2 if True: event_data = rows[len(rows) // 2] # Hopefully select a useful representative.