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]
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 hashes)
Built Distribution
Close
Hashes for tomlcheck-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0471bf3a91e42eed2763279b33898fe436655d66d5a948badee349d53824d47b |
|
MD5 | 71847e3e0586cfedcce1ec8bf40c1967 |
|
BLAKE2b-256 | a627d78cc9eabcff776e600fce6f142a4cb57b55fe1039f8ca319ed114ebdbc1 |