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.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomlcheck-0.2.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.6 Darwin/19.3.0

File hashes

Hashes for tomlcheck-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8c25a43cfa3befe120c5d087041dc2a0e49c1225d773b09e77cde7feb3897f3f
MD5 71affaa4a1af53b9ef162791c6dbee7d
BLAKE2b-256 20d2c35caa0a3c7009b5d306f0bad1a106106ff0ac6e6a6e928ae590ca3a63df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tomlcheck-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.6 Darwin/19.3.0

File hashes

Hashes for tomlcheck-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0471bf3a91e42eed2763279b33898fe436655d66d5a948badee349d53824d47b
MD5 71847e3e0586cfedcce1ec8bf40c1967
BLAKE2b-256 a627d78cc9eabcff776e600fce6f142a4cb57b55fe1039f8ca319ed114ebdbc1

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