• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jhheider / edikt / 29630438774
96%

Build:
DEFAULT BRANCH: main
Ran 18 Jul 2026 04:22AM UTC
Jobs 1
Files 47
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jul 2026 04:22AM UTC coverage: 95.973% (+0.03%) from 95.945%
29630438774

push

github

web-flow
feat(frontmatter): commented host-language blocks (PEP 723 / uv / scriptbox) (#55)

Extends the frontmatter lens to the `# /// script` ... `# ///` blocks that
uv reads in Python files and scriptbox reads in shell scripts (briefs
edikt-050). `edikt -t frontmatter -i '.["requires-python"] = ">=3.12"' app.py`
bumps the pin and re-applies the `# ` prefix; the code below is untouched.

The block is TOML once de-commented. `detect_commented()` finds it (after an
optional shebang), strips the canonical `# `/bare-`#` prefix from each line
into clean TOML for the existing engine, and `recomment()` re-applies the
prefix on `to_source()` - the inverse, so an unedited block round-trips
byte-for-byte (verified for CRLF, blank `#` lines, trailing spaces). v1
requires the canonical prefix and the block at the file head; irregular
prefixes and mid-file blocks are a follow-up.

Also fixes a rough edge across all TOML-backed frontmatter: a query over the
lens now renders in the block's own format instead of erroring on
"frontmatter" as an output. New defaulted `Document::inner_format()` (None for
every existing format; the lens returns its block's format); a query defaults
its output to it. So `edikt '.' app.py` prints the block as TOML, and a
top-level array gives the same "-T json" hint a plain .toml file does.

New trait method bumps edikt-core to 0.2.2.


Claude-Session: https://claude.ai/code/session_01M2mmYNDMXjtRZUF4qw7sjf

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

145 of 147 new or added lines in 3 files covered. (98.64%)

3 existing lines in 1 file now uncovered.

10056 of 10478 relevant lines covered (95.97%)

84.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
91.69
3.45% crates/edikt-frontmatter/src/lib.rs

Coverage Regressions

Lines Coverage ∆ File
3
91.69
3.45% crates/edikt-frontmatter/src/lib.rs
Jobs
ID Job ID Ran Files Coverage
1 29630438774.1 18 Jul 2026 04:22AM UTC 47
95.97
GitHub Action Run
Source Files on build 29630438774
  • Tree
  • List 47
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29630438774
  • eba336c4 on github
  • Prev Build on main (#29630344560)
  • Next Build on main (#29630877998)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc