8000 add SVG output by casperdcl · Pull Request #112 · casperdcl/git-fame · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add SVG output #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 29, 2025
Merged

add SVG output #112

merged 5 commits into from
May 29, 2025

Conversation

casperdcl
Copy link
Owner
@casperdcl casperdcl commented May 28, 2025
  • add --format=svg (fixes svg format #110)
  • add --min=<val> for truncating table rows on value of --sort=<key>
  • update bash completions
  • snap: upgrade core22 -> core24
  • tests: increase coverage

Live server (https://git-fame.cdcl.ml/docs) for public repos:

![contributions](https://git-fame.cdcl.ml/gh/casperdcl/git-fame)

contributions

@coveralls
Copy link
coveralls commented May 28, 2025

Coverage Status

coverage: 87.848% (+0.3%) from 87.565%
when pulling 82ae28c on svg
into 8e39c3d on main.

Comment on lines 212 to 220
rows = table.split('\n')
return ('<svg xmlns="http://www.w3.org/2000/svg"'
f' width="{len(rows[0]) / 2 + 1}em" height="{len(rows)}em">'
'<text x="0" y="-0.5em" font-size="15"'
' font-family="monospace" style="white-space: pre">' +
''.join(f'<tspan x="0" dy="1em">{row}</tspan>'
for row in rows) + '</text></svg>')
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if worth opening an PR on https://github.com/astanin/python-tabulate

Copy link
codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 30.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 83.67%. Comparing base (c43d110) to head (6c51314).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
- Coverage   85.11%   83.67%   -1.45%     
==========================================
  Files           2        2              
  Lines         383      392       +9     
  Branches      100      105       +5     
==========================================
+ Hits          326      328       +2     
- Misses         48       52       +4     
- Partials        9       12       +3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@casperdcl casperdcl merged commit 7d0598e into main May 29, 2025
25 of 26 checks passed
@casperdcl casperdcl deleted the svg branch May 29, 2025 22:18
9485
@casperdcl
Copy link
Owner Author

/tag v3.1.0 7d0598e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

svg format
2 participants
0