1
0
Commit Graph

20 Commits

Author SHA1 Message Date
acaedcbd3a Fix code style and optimization issues
Some checks failed
Run Python tests (through Pytest) / Test (push) Failing after 29s
Verify Python project can be installed, loaded and have version checked / Test (push) Failing after 26s
- Fix variable naming: TIME_COLUMN -> time_column, l -> components, COLUMNS -> columns
- Extract exception string literals to variables (EM101)
- Replace assert statements with proper error handling in obsidian_import
- Use dict.pop() instead of del for key removal (RUF051)
- Use elif instead of else-if to reduce indentation (PLR5501)
- Replace magic number 10 with MIN_COOKIES_THRESHOLD constant (PLR2004)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 00:27:33 +02:00
36ba48f36e Improve exception handling patterns
- Replace bare except with specific Exception in git_repo.py
- Use try/except/else pattern for better flow in git_repo.py
- Replace logger.error with logger.exception in main.py for better error reporting

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 00:22:49 +02:00
b79ea804b2 Replace assert statements with proper error handling
- Replace assert with ValueError in git_time_tracker/source/csv_file.py
- Replace assert with ValueError in git_time_tracker/source/git_repo.py
- Replace assert with TypeError in personal_data/util.py
- Fix isinstance call to use tuple for efficiency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 00:22:06 +02:00
2087460a7f 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>
2025-06-25 00:21:11 +02:00
088cac75fc Ruff
Some checks failed
Run Python tests (through Pytest) / Test (push) Failing after 29s
Verify Python project can be installed, loaded and have version checked / Test (push) Failing after 26s
2025-06-25 00:12:37 +02:00
d945fb81fb Remove debug prints 2025-06-15 23:15:47 +02:00
45233bd593 fix: Assign exception message to variable before raising ValueError
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 36s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 31s
2025-04-08 22:55:24 +02:00
82cfd45878 style: Consistently use single quotes for string literals in code 2025-04-08 22:54:13 +02:00
f38923e8fb fix: Replace assert with ValueError for empty sample_filter check 2025-04-08 22:53:53 +02:00
0e1779cca0 fix: Remove unnecessary del statements from __main__.py file 2025-04-08 22:51:31 +02:00
3d9c694fe8 Ruff 2025-03-15 21:54:56 +01:00
0e98fe6225 Auto line length
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 35s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 37s
2025-03-01 23:20:16 +01:00
3e6c517fa9 Fixed labels 2025-03-01 23:18:52 +01:00
c226ac623c
Activity merging 2024-10-14 20:18:34 +02:00
c07c371939
Moved more logic to personal_data 2024-10-14 19:43:34 +02:00
72be664d82
Ruff
All checks were successful
Test Python / Test (push) Successful in 31s
2024-10-13 15:20:30 +02:00
477fce869d
Moved ActivitySample into personal_data 2024-10-13 15:20:18 +02:00
eb3518ba88
Renamed WorkSample to ActivitySample 2024-10-13 15:05:55 +02:00
f47daa3256
Merging git_time_tracker's advanced CSV parsing into personal_data 2024-10-13 15:04:18 +02:00
4f851b21b5
Merged git-time-tracker into personal-data
All checks were successful
Test Python / Test (push) Successful in 31s
2024-10-13 14:32:51 +02:00