{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"gersemi is a command-line formatter for CMake code that automatically reformats CMakeLists.txt and .cmake files to a consistent style, with support for custom command definitions and configurable formatting rules.","skillfed_tags":["cmake","code-formatter","build-tools"],"use_cases":["Enforce consistent CMake formatting across a multi-module C/C++ project as part of CI/CD.","Reformat legacy CMakeLists.txt files to a modern style before refactoring.","Check if CMake code meets team style guidelines in pre-commit hooks.","Integrate CMake formatting into an IDE or editor workflow via stdin/stdout.","Configure project-specific formatting rules in .gersemirc and share across team members."],"what_it_does":"gersemi is a standalone CMake code formatter that reads CMake source files and rewrites them according to configurable style rules. It operates as a command-line tool that can check, diff, or in-place reformat CMakeLists.txt files and .cmake modules, with support for parallel processing across multiple files. The formatter respects configuration files (.gersemirc) placed in project directories and allows fine-grained control over line length, indentation style, list expansion behavior, and custom command definitions.\n\nThe tool is designed for developers and build system maintainers who want to enforce consistent CMake code style across projects. It integrates into CI/CD pipelines for formatting checks, supports stdin/stdout workflows, and includes caching to speed up repeated runs on unchanged files. Configuration can be stored in version-controlled .gersemirc files or supplied via command-line arguments, making it suitable for team environments.","worth_installing":"Yes. gersemi is actively maintained, has no known vulnerabilities, and solves a real problem for CMake-based projects. The medium install friction is acceptable given the pre-built wheels and lightweight dependency. The copyleft license (MPL-2.0) does not restrict your use of the tool itself. Install it if you maintain CMake code and want automated, configurable formatting."},"id":"gersemi","links":{"html":"https://skillfed.io/packages/gersemi","md":"https://skillfed.io/packages/gersemi.md","pypi":"https://pypi.org/project/gersemi/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-21","license_spdx":null,"license_treatment":"copyleft","name":"gersemi","python_support":"supports_current","summary":"A formatter to make your CMake code the real treasure"},"popularity":{"monthly_downloads":141256,"position":11244,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.28.0"}
