Skip to main content

A simple toml syntax checker

Project description

A simple toml syntax checker.

Designed to be used by pre-commit hooks.

Installation

pip install -U tomlcheck

Usage

Check files:

tomlcheck $(find . -type f -name "*.toml")

# Or read from stdin

find . -type f -name "*.toml" | tomlcheck -

With logging:

tomlcheck --log-level DEBUG $(find . -type f -name "*.toml")

# Or read from stdin

find . -type f -name "*.toml" | tomlcheck --log-level DEBUG -

In pre-commit config:

# .pre-commit-config.yaml

- repo: local
  hooks:
  - id: tomlcheck
    name: Check TOML Syntax
    description: Checks TOML files for valid syntax.
    entry: tomlcheck
    language: system
    files: \**/*.toml$
    stages: [commit, push, manual]

Help Menu

tomlcheck --help

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

tomlcheck-0.2.3.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

tomlcheck-0.2.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file tomlcheck-0.2.3.tar.gz.

File metadata

  • Download URL: tomlcheck-0.2.3.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for tomlcheck-0.2.3.tar.gz
Algorithm Hash digest
SHA256 0865ae7ccaf41f1a36a3b0de48c59289d9a5d00998fcd338199c8c69ddd11405
MD5 687f9dfd3daae55b3a9d0e0c1639d6d6
BLAKE2b-256 e94b4ceedc53234fbea932bd6db9e63ca7d139356c1461cd8f7a5c4d19910375

See more details on using hashes here.

File details

Details for the file tomlcheck-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: tomlcheck-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for tomlcheck-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6f4f9e4e87e83b5d7577fbca63f3f51712b986781ee6ff69987d3c0cd703425d
MD5 5e2d74009fa39e937eca386d7db1471f
BLAKE2b-256 47d43f06ee42f779f1acccb568e108055811bfd98d085df3e92413c1dfc2b2ad

See more details on using hashes here.

Supported by

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