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.0.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.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: precice_config_format-1.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 f4b77281a9e9daff7df4c8e046e538d2fcc2d8a21c2e8914796f6d2fe8b366f8
MD5 c6feb26a12978c03f2c5eba3268d6af6
BLAKE2b-256 1c7aeea85859c666a28e7da47209c23e2ab2a43d0579bf6b83c6cadd1e46c96c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for precice_config_format-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 967c69135a9287d951317a7bef27d80ec60124b3d18ec2ea2d7dd4c228d403cd
MD5 765f5adc7857a896800faf016ba96caf
BLAKE2b-256 3e33dc860475deb9f2e59ef48ae43e8f97d055e74cc4bc4fb56fea7a788a75f5

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