Code cleanup for C++, Python, and Meson
Project description
🧹 Eutaxis
Eutaxis (from Ancient Greek εὖ “good” + τάξις “arrangement, ordering”) is a command-line tool for normalizing and cleaning up project code layouts. It focuses on consistent headers, include ordering, and formatting across common project structures.
Currently supported:
- Python projects:
isortandruff- optional licence headers
- Meson projects:
- Lark-based argument reordering for many functions
muon fmt- optional licence headers
- C++ projects:
- header guards
- include ordering
- Meson targets
- simple qualifier reordering
- optional licence headers
📦 Installation
Eutaxis is available on PyPI and can be installed as usual, for example:
pip install eutaxis
🚀 Usage
Eutaxis is driven by “workers” (one per language):
eutaxis <worker> [options]
Examples:
# Clean a Python project in the current directory
eutaxis python
# Clean a Meson project
eutaxis meson -c muon.cfg
# Clean a C++ project using .eutaxis config
eutaxis cpp
To see options:
eutaxis -h
eutaxis python -h
eutaxis meson -h
eutaxis cpp -h
⚙️ C++ Configuration
C++ clean-up is configured via a .eutaxis YAML file in the project root, for example:
fix_meson: false
license: MPL-2.0
url: https://github.com/your/repo
project_name: mylib
ignore_parent_header:
- include/mylib/detail
ignore_folders:
- external
The C++ worker expects the following layout:
- headers:
include/<project_name>/... - sources (optional):
src/,test/,perf/,tools/
🧠 Behaviour Overview
- Licence/file headers:
- Inserts or normalizes licence/file headers for supported languages.
- C++:
- Normalizes header guards.
- Maintains “base headers”
<dir>.hppwith an IWYU export block. - Re-sorts and groups includes into:
- C++ standard headers
- other system headers
- project headers
- relative headers
- Adjusts a few qualifiers (e.g.
constexpr explicit→explicit constexpr). - Updates Meson snippets for per-source targets.
- Python and Meson:
- Runs formatters:
- Python:
isort,ruff format - Meson: Lark-based argument reordering for many functions,
muon fmt
- Python:
- Runs formatters:
⌨️ Shell Completion
Eutaxis integrates with argcomplete.
Once argcomplete is installed and enabled in your shell,
eutaxis <TAB>
can be used to complete available workers and options.
📜 Licence
This library is licensed under the terms of the Mozilla Public Licence 2.0, provided in License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eutaxis-1.2.0.tar.gz.
File metadata
- Download URL: eutaxis-1.2.0.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1be9ce40926e3a919d9b731a973b6c3ca5f228d52e868b4272fc681c0443a4da
|
|
| MD5 |
df50764307e45023c70966f6c9caee0b
|
|
| BLAKE2b-256 |
c3a6027058609006097b7fbe4c2c176945baba9f6ac6f3553805756269b4074e
|
Provenance
The following attestation bundles were made for eutaxis-1.2.0.tar.gz:
Publisher:
publish-to-pypi.yml on KurtBoehm/eutaxis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eutaxis-1.2.0.tar.gz -
Subject digest:
1be9ce40926e3a919d9b731a973b6c3ca5f228d52e868b4272fc681c0443a4da - Sigstore transparency entry: 1223486419
- Sigstore integration time:
-
Permalink:
KurtBoehm/eutaxis@f0cd8f6c5e066d6536580189803298a5854a5477 -
Branch / Tag:
refs/tags/1.2.0 - Owner: https://github.com/KurtBoehm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@f0cd8f6c5e066d6536580189803298a5854a5477 -
Trigger Event:
release
-
Statement type:
File details
Details for the file eutaxis-1.2.0-py3-none-any.whl.
File metadata
- Download URL: eutaxis-1.2.0-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efea46b58dee0a0132244b315e670fb8153f7f55dd2cdfff9025471b68c05f4b
|
|
| MD5 |
864e1acf8c6b1ecbe3e1822f89828a70
|
|
| BLAKE2b-256 |
a6850465d2bdfc213c2efec7e6f18b4668aa96f43b9444b4457a7d4255e5e824
|
Provenance
The following attestation bundles were made for eutaxis-1.2.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on KurtBoehm/eutaxis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eutaxis-1.2.0-py3-none-any.whl -
Subject digest:
efea46b58dee0a0132244b315e670fb8153f7f55dd2cdfff9025471b68c05f4b - Sigstore transparency entry: 1223486477
- Sigstore integration time:
-
Permalink:
KurtBoehm/eutaxis@f0cd8f6c5e066d6536580189803298a5854a5477 -
Branch / Tag:
refs/tags/1.2.0 - Owner: https://github.com/KurtBoehm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@f0cd8f6c5e066d6536580189803298a5854a5477 -
Trigger Event:
release
-
Statement type: