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.2.1.tar.gz (16.2 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.2.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: precice_config_format-1.2.1.tar.gz
  • Upload date:
  • Size: 16.2 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.2.1.tar.gz
Algorithm Hash digest
SHA256 8722d9e8f5272ca505e3c0c4016465e458f7311d510712404790b213d8f0ce51
MD5 6c48a5f50c02791ec65c2e385b29be14
BLAKE2b-256 e712783164d18907bc9ddcffdca6639575328607381562b01065e42b0d5901c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for precice_config_format-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f414fced34e4e056bed16dc93ef6b5b9b35d61a33941c8c5bea77365ce0d7346
MD5 2b07a98ae4ca1576d4112ec6fa4b6542
BLAKE2b-256 e855dacb4abbc3205eec8d592bced5b562cc8e6db4ad79eb27838e19da7665e5

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