Skip to main content

Formatter for GStreamer ValidateTest files

Project description

validatetest-fmt

A formatter for GStreamer ValidateTest files (.validatetest).

Installation

pip install validatetest-fmt

Usage

# Format files in place
validatetest-fmt -i file.validatetest

# Check if files are formatted (useful for CI)
validatetest-fmt --check file.validatetest

# Read from stdin, write to stdout
cat file.validatetest | validatetest-fmt

# Custom indentation (default: 4 spaces)
validatetest-fmt --indent 2 file.validatetest

# Custom line length (default: 120)
validatetest-fmt --line-length 80 file.validatetest

Pre-commit Hook

Add to your .pre-commit-config.yaml:

- repo: local
  hooks:
    - id: validatetest-fmt
      name: validatetest-fmt
      language: python
      entry: validatetest-fmt --check
      types_or: [file]
      files: '\.validatetest$'
      additional_dependencies: ['validatetest-fmt>=0.1.0']

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

validatetest_fmt-0.1.0-py3-none-macosx_11_0_arm64.whl (295.5 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file validatetest_fmt-0.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for validatetest_fmt-0.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f03617451b8709238ad54b1f4c821f1c574c0e7c958b925c9509b6a826ffafb
MD5 e9f3e122b60710525912737f9027f33b
BLAKE2b-256 0d888733d02c0049e692410c7326f3186b76c40e92182a99688e581866277384

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