Skip to content

Add MIT LICENSE and Codecov coverage badge#5

Merged
grammy-jiang merged 1 commit into
masterfrom
claude/pre-commit-hooks-setup-2sc78y
Jul 19, 2026
Merged

Add MIT LICENSE and Codecov coverage badge#5
grammy-jiang merged 1 commit into
masterfrom
claude/pre-commit-hooks-setup-2sc78y

Conversation

@grammy-jiang

Copy link
Copy Markdown
Owner

What

  • MIT LICENSE — a LICENSE file (Copyright 2026 Grammy Jiang), declared in pyproject.toml via the PEP 639 license = "MIT" + license-files, with a [build-system] pinning setuptools>=77 so the SPDX form is honored (verified: metadata resolves to License-Expression: MIT).
  • Coverage badge — CI now uploads coverage.xml to Codecov (from the 3.12 job only). fail_ci_if_error: false keeps the build green whether or not Codecov is wired up yet; CODECOV_TOKEN is honored if set, and public-repo tokenless upload is attempted otherwise.
  • README — adds License (MIT) and codecov badges to the status row.

Note on the coverage badge

The repo is public, so the first successful upload (this PR's / the next master run's 3.12 job) auto-onboards the project and the badge populates. If it stays unknown, add a CODECOV_TOKEN repo secret from codecov.io — I can walk through that.

Verified locally

  • pip install -e . builds cleanly with the license metadata.
  • coverage.xml generates (85.25%); the coverage floor (fail_under=80) still passes.
  • All 14 pre-commit hooks green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fd4FtxJFV2fVSSoD7urqqn


Generated by Claude Code

- LICENSE: MIT (Copyright 2026 Grammy Jiang), declared in pyproject via the
  PEP 639 `license = "MIT"` + `license-files`, with a [build-system] pinning
  setuptools>=77 so the SPDX form is honored.
- CI uploads coverage.xml to Codecov from the 3.12 job only (public-repo
  tokenless, honors CODECOV_TOKEN if set; fail_ci_if_error=false keeps the
  build green whether or not Codecov is wired up yet).
- README: add License (MIT) and codecov badges to the status row.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fd4FtxJFV2fVSSoD7urqqn
@grammy-jiang
grammy-jiang merged commit 53e00d0 into master Jul 19, 2026
6 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.

2 participants