Metadata-Version: 2.4
Name: kconfigstyle
Version: 0.5.0
Summary: Simple formatter for Kconfig files
License-Expression: MIT
Requires-Python: >=3.10
Project-URL: Homepage, https://github.com/noahp/kconfigstyle
Project-URL: Issues, https://github.com/noahp/kconfigstyle/issues
Project-URL: Repository, https://github.com/noahp/kconfigstyle
Description-Content-Type: text/markdown

[![](https://img.shields.io/badge/GitHub-noahp/kconfigstyle-8da0cb?style=flat-square&logo=github)](https://github.com/noahp/kconfigstyle)
[![](https://img.shields.io/github/actions/workflow/status/noahp/kconfigstyle/ci.yml?style=flat-square&branch=main)](https://github.com/noahp/kconfigstyle/actions?query=branch%3Amain+)
[![](https://img.shields.io/pypi/v/kconfigstyle?style=flat-square)](https://pypi.org/project/kconfigstyle/)


# kconfigstyle

A simple linter for Kconfig files, with support for Zephyr and ESP-IDF coding
styles.

See here for refences on Zephyr and ESP-IDF Kconfig styles:

- https://docs.zephyrproject.org/latest/contribute/style/kconfig.html
- https://docs.espressif.com/projects/esp-idf-kconfig/en/latest/kconfcheck/index.html#kconfig-format-rules

Espressif provides a tool called
[`kconfcheck`](https://github.com/espressif/esp-idf-kconfig/blob/master/kconfcheck/core.py)
to check Kconfig formatting, but it is not very configurable and does not
support auto-formatting. `kconfigstyle` aims to provide a more flexible and
user-friendly alternative.

## Installation

Run without installing with `uv`:

```bash
uvx kconfigstyle [options] <kconfig_files>
```

Or install and run:

```bash
pip install kconfigstyle
kconfigstyle [options] <kconfig_files>
```

## License

See LICENSE file for details.
