gersemi is a specialized source code formatting utility designed to maintain consistent styling across CMake project files. Written in Python, it automatically restructures CMake commands, arguments, indentation, and multiline expressions. Developers can customize formatting preferences through command-line arguments or hierarchical configuration files. The application recognizes custom CMake functions and macros when their definitions are supplied. Configurable argument expansion strategies determine how lengthy command expressions are arranged. Parallel processing and file caching improve formatting efficiency across large projects. The utility provides formatting verification, difference previews, optional sanity checks, and pre-commit integration for automated development workflows.

Features

  • Automatic CMake source code formatting with consistent indentation and command structure
  • Configurable line lengths, indentation styles, and multiline argument expansion strategies
  • Hierarchical configuration files with command-line preference overrides
  • Custom CMake function and macro recognition through supplied command definitions
  • Parallel file processing and caching for improved formatting performance
  • Formatting verification, colorized difference previews, and pre-commit hook integration

Project Samples

Project Activity

See All Activity >

Categories

Code Formatters

License

Mozilla Public License 1.0 (MPL)

Follow gersemi

gersemi Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gersemi!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Code Formatters

Registered

2 hours ago