Skip to main content

A tool for consistently formatting a preCICE configuration file.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

precice_config_format-1.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

precice_config_format-1.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file precice_config_format-1.1.0.tar.gz.

File metadata

  • Download URL: precice_config_format-1.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for precice_config_format-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f252948beecec13e0950848725c19e0121941cb4203d9bf2eeeb7d130e3d96a7
MD5 3cb717f474a95831a17cf6d858524137
BLAKE2b-256 a46cce3654f394532c76a0246b0772fd1eb71ca2d04c73c3b2b9337a401fb92e

See more details on using hashes here.

File details

Details for the file precice_config_format-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for precice_config_format-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46deb2c757e5701eb312139ccf707097b3f2ba65c7a9d3926021fcbfe5c4d47f
MD5 a5e814d701150ef3d0af33f0e8783080
BLAKE2b-256 b9007fd36fb8ae930da3f4df97c6c2955885df5bd75a7c3df623fdf6b37a0dfc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page