Commit 6991ec9
committed
fix: improve main.py and utils.py, remove paths filter from scorecard workflow
- Remove 'paths' filter from scorecard.yml push trigger to run on all master pushes
- Refactor main.py to locally fetch WAKATIME_API_KEY env var and replace retry exhaustion logs with ValueError exceptions
- Reduce get_wakatime_stats retry attempts from 10 to 5 and raise on failure instead of returning None
- Update utils.py initialize_github to dynamically detect github.Auth.Token for compatibility with PyGithub changes
- Add missing test coverage for network error handling and update_readme content retrieval failure in main.py
- Refactor tests to reduce too-many-argument warnings and fix patch targets1 parent 357c5b4 commit 6991ec9
6 files changed
Lines changed: 138 additions & 888 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
| |||
0 commit comments