1
0
Commit Graph

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