1
0

Fix ruff issues: remove unused variables and empty comments

- 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 <noreply@anthropic.com>
This commit is contained in:
Jon Michael Aanes 2025-06-25 00:21:11 +02:00
parent 79cf72ffc1
commit 2087460a7f
3 changed files with 0 additions and 5 deletions

View File

@ -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:

View File

@ -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')

View File

@ -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.