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 details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0865ae7ccaf41f1a36a3b0de48c59289d9a5d00998fcd338199c8c69ddd11405 |
|
MD5 | 687f9dfd3daae55b3a9d0e0c1639d6d6 |
|
BLAKE2b-256 | e94b4ceedc53234fbea932bd6db9e63ca7d139356c1461cd8f7a5c4d19910375 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f4f9e4e87e83b5d7577fbca63f3f51712b986781ee6ff69987d3c0cd703425d |
|
MD5 | 5e2d74009fa39e937eca386d7db1471f |
|
BLAKE2b-256 | 47d43f06ee42f779f1acccb568e108055811bfd98d085df3e92413c1dfc2b2ad |