gersemi
brew install gersemi
v0.27.7
MPL-2.0
Formatter to make your CMake code the real treasure
87
30-day installs · #3682
343
90-day · #3343
821
365-day · #4155
333
★ GitHub stars · updated 2mo ago
Runtime dependencies
Build dependencies
GitHub topics
cmake
cmake-format
cmake-language
cmakelists
codeformatter
formatter
formatters
formatting
pre-commit-hook
specialized-formatter
Links
- https://github.com/BlankSpruce/gersemi
- GitHub: BlankSpruce/gersemi
- Brew formula source: Formula/g/gersemi.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"rust"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"libyaml",
"python@3.14"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Formatter to make your CMake code the real treasure",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:37:58+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "gersemi",
"github_default_branch": "master",
"github_last_commit_at": "2026-06-17T16:20:11Z",
"github_readme_excerpt": "# gersemi\n\n[](https://github.com/BlankSpruce/gersemi/actions) [](https://opensource.org/licenses/MPL-2.0) [](https://github.com/astral-sh/ruff)\n\nA formatter to make your CMake code the real treasure.\n\n## Installation\n\nYou can install gersemi from PyPI:\n\n```shell\npip3 install gersemi\n```\n\n## Usage\n\n```plain\nusage: gersemi [-c] [-i] [--diff] [--print-config {minimal,verbose,default}] [--version]\n [-h] [-l INTEGER] [--indent (INTEGER | tabs)] [--safe]\n [--definitions src [src ...]]\n [--list-expansion {favour-inlining,favour-expansion}]\n [--warn-about-unknown-commands] [--disable-formatting]\n [--extensions extension-name-or-path [extension-name-or-path ...]]\n [--sort-order {case-sensitive,case-insensitive}] [-q] [--color]\n [-w (INTEGER | max)] [--cache] [--cache-dir CACHE_DIR]\n [--config CONFIGURATION_FILE] [--warnings-as-errors]\n [--line-ranges LINE_RANGES] [--respect-ignore-files]\n [src ...]\n\nA formatter to make your CMake code the real treasure.\n\npositional arguments:\n src File or directory to format. When directory is provided then\n CMakeLists.txt, CMakeLists.txt.in and files with\n .cmake/.cmake.in extension are automatically discovered. If only\n `-` is provided, input is taken from stdin instead.\n\nmodes:\n -c, --check Check if files require reformatting. Return 0 when there\u0027s\n nothing to reformat. Return 1 when some files would be\n reformatted. It can be used together with --diff.\n -i, --in-place Format fil",
"github_repo": "BlankSpruce/gersemi",
"github_stars": 333,
"github_topics": [
"cmake",
"cmake-format",
"cmake-language",
"cmakelists",
"codeformatter",
"formatter",
"formatters",
"formatting",
"pre-commit-hook",
"specialized-formatter"
],
"homepage": "https://github.com/BlankSpruce/gersemi",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 87,
"installs_365d": 821,
"installs_90d": 343,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MPL-2.0",
"llm_generated_at": null,
"llm_model": null,
"name": "gersemi",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 3682,
"rank_365d": 4155,
"rank_90d": 3343,
"raw_hash": "a58fd4eb1cc6555e",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/gersemi.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "0.27.7",
"versioned_formulae": [],
"why_use_this": null
}