Skip to content

chore: repo modernization (moderate) - #1

Merged
jgamblin merged 2 commits into
mainfrom
audit/modernize-2026-03-28
Mar 29, 2026
Merged

jgamblin merged 2 commits into
mainfrom
audit/modernize-2026-03-28

Conversation

@jgamblin

Copy link
Copy Markdown
Owner

Summary

Repo Hygiene

  • Added Apache 2.0 LICENSE file (matching the existing declaration in README)
  • Added CODEOWNERS file assigning @jgamblin as default owner
  • Added .claude/ to .gitignore

CI/CD

  • Added GitHub Actions CI workflow (.github/workflows/ci.yml)
    • Matrix: Python 3.11 + 3.12
    • Steps: install deps, ruff lint, pytest
    • Uses actions/checkout@v4 and actions/setup-python@v5

Dependencies

  • Major version bumps in requirements.txt with upper-bound pins:
    • numpy >=2.0.0,<3.0 (was >=1.24.0)
    • matplotlib >=3.9.0,<4.0 (was >=3.7.0)
    • seaborn >=0.13.0,<1.0 (was >=0.12.0)
    • pandas >=2.2.0,<3.0 (was >=2.0.0)
    • requests >=2.32.0,<3.0 (was >=2.28.0)
    • tqdm >=4.66.0,<5.0 (was >=4.65.0)
    • pyarrow >=17.0.0,<18.0 (was >=12.0.0)
    • google-generativeai >=0.8.0,<1.0 (was >=0.3.0)
  • Added pytest>=8.0.0,<9.0 as test dependency

Testing

  • Added 8 unit tests for style_config.py covering: color palettes, severity mappings, hex validation, formatter functions, figure sizes, CWE names, style application, DPI config

Documentation

  • Updated README with:
    • CI status badge
    • Python version requirement (3.11+)
    • Full script listing (all 7 scripts + run_all.sh)
    • Testing section
    • Improved project structure tree

Intentionally Left Alone

  • Python scripts (01-07): No deprecated API usage found (list .append() calls are standard Python, not deprecated DataFrame.append). Code is clean and functional.
  • Generated output files (blog*.md, graphs/): These are pipeline outputs, not source code to modernize.
  • run_all.sh: Already well-structured with error handling, no changes needed.
  • style_config.py: Clean module with no deprecation issues.
  • No Dependabot alerts: The repo had zero open security advisories.

Manual Follow-ups

  • Verify CI passes on first run (ruff may flag some style issues in the data scripts that could be addressed in a follow-up)
  • Consider adding pyproject.toml to replace requirements.txt for modern Python packaging
  • Consider pinning exact versions in a lockfile for reproducible builds

Generated with Claude Code /repo-audit

jgamblin and others added 2 commits March 28, 2026 18:52
- Add Apache 2.0 LICENSE file (matching existing README declaration)
- Add CODEOWNERS file (@jgamblin)
- Add CI workflow with GitHub Actions (Python 3.11/3.12, ruff lint, pytest)
- Update requirements.txt with pinned version ranges and major dep bumps
- Add pytest as test dependency
- Add basic test suite for style_config module (8 tests)
- Update README with CI badge, full script listing, testing section
- Add .claude/ to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Auto-fixed 721 whitespace/formatting issues with ruff --fix and
--unsafe-fixes. Manually fixed remaining 14 errors: bare except
clauses (E722) changed to except Exception, ambiguous variable
names (E741) renamed, import ordering (E402) corrected, and
duplicate dict key (F601) removed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jgamblin
jgamblin merged commit 92fd757 into main Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant