Gersemi

Latest version: v0.19.1

Safety actively analyzes 710445 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 9

0.13.1

Fixed
- fix issue with messing up whitespaces in between arguments of unknown custom commands

0.13.0

Added
- support for using canonical casing of custom commands (21)

Changed
- official CMake commands will be formatted with their canonical casing (like `FetchContent_Declare`) instead of lower case version with the following deliberate exceptions:
- `check_fortran_function_exists`
- `check_include_file_cxx`
- `check_include_file`
- `check_include_files`
- `check_library_exists`
- `check_struct_has_member`
- `check_variable_exists`

Fixed
- use specialized formatting of some previously omitted official commands
- improve consistency of `set_package_properties` with similar commands
- fix formatting of first command in `add_custom_target` (24)
- fix incorrect detection of sections in commands like `install` (26)

0.12.1

- improve `find_package` formatting around `REQUIRED` keyword (20)

0.12.0

Added
- support for different kinds of indentation, either specific number of spaces or tabs through `--indent` argument (examples: `--indent=2` or `--indent=tabs`) or `indent` entry in `.gersemirc` (examples: `indent: 2` or `indent: tabs`) (15)
- support for hints in custom command definition for specialized formatting, currently supported are `command_line` and `pairs`

Changed
- formatting of `install` command will now correctly recognize sections like `RUNTIME`, `ARCHIVE`, `FILE_SET` etc. (19)

Fixed
- inconsistent formatting of `add_library` (17)
- edge cases of comments present in `COMMAND` argument of `add_custom_command` and similar commands
- improve README and help about heuristic used in `favour-inlining` style (18)

0.11.1

Added
- support for new keywords in native commands and new commands available in CMake 3.29

Fixed
- fix issue with comments in `COMMAND` argument of `add_custom_command` (16)

0.11.0

Added
- Number of workers spawned for formatting multiple files can be changed with `-w/--workers`. By default it will be number of CPUs available in the system but limited to 60 for Windows machines due to [this](https://github.com/python/cpython/issues/89240).

Page 4 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.