preCICE Config-Format
config-format is a tool meant to format preCICE configurations consistently. A uniform order simplifies cooperation debugging.
Installation options
Install directly from PyPi using pipx or via pip:
pipx install precice-config-format
Usage
To format one or more preCICE configuration files in-place:
precice-config-format FILE ...
The script returns with exit code 0 on success, 1 on error, and 2 if a file was modified.
pre-commit hook
To use this script as a pre-commit hook select a tag and add:
- repo: https://github.com/precice/config-format
rev: '' # Use the tag you want to use
hooks:
- id: precice-config-format
To exclude directories, use exclude:
- repo: https://github.com/precice/config-format
rev: '' # Use the tag you want to use
hooks:
- id: precice-config-format
exclude: '^thridparty' # optionally exclude directories here
Licensing
This repository contains a modified version of format_precice_config.py, which was part of the repository precice/precice-pre-commit-hooks.
The copyright holder Frédéric Simonis (@fsimonis frederic.simonis@ipvs.uni-stuttgart.de) decided on 23. June 2025 16:30 CET to rerelease the content of the file format_precice_config.py in this repository under the MIT license.
Release files for precice-config-format 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| precice_config_format-2.0.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| precice_config_format-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / precice_config_format-2.0.0.tar.gz
| Download URL | precice_config_format-2.0.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc70154657c23d65aa9a6e34bd5962eb82d08c3b9ee414d94316c41ca06a3d99
|
|
BLAKE2b-256 checksum How to use checksums |
ed77273bde237cdb41976cc2a93a0e56dfdd1af0866b811fb5503537683fc02e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / precice_config_format-2.0.0-py3-none-any.whl
| Download URL | precice_config_format-2.0.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f04309e645afb5f9261cef28b3ff079669ba20327039a6371ddd5631fbf5efd2
|
|
BLAKE2b-256 checksum How to use checksums |
e9dc610306b832be1fac47504bd3686fede4922e6b3091a1f942d6743c40a31f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|