Gersemi

Latest version: v0.12.1

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

Scan your dependencies

Page 1 of 6

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).

0.10.0

Added
- configuration schema that can be used with yaml LSP server, see: [JSON Schema](https://json-schema.org/) and #12
- yaml header linking to configuration schema in configuration produced by `--default-config`
- support for Python 3.12

Fixed
- meaningless but syntactically valid `target_link_libraries` with just library name won't crash gersemi (13)

0.9.4

Added
- support for new keywords in native commands available in CMake 3.28

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.