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.3.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for tomlcheck-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f4f9e4e87e83b5d7577fbca63f3f51712b986781ee6ff69987d3c0cd703425d |
|
MD5 | 5e2d74009fa39e937eca386d7db1471f |
|
BLAKE2b-256 | 47d43f06ee42f779f1acccb568e108055811bfd98d085df3e92413c1dfc2b2ad |