Crates.io | check-config |
lib.rs | check-config |
version | 0.4.0 |
source | src |
created_at | 2023-08-25 23:02:47.170354 |
updated_at | 2023-09-11 17:41:13.793045 |
description | Check configuration files. |
homepage | https://pypi.org/project/check-config/ |
repository | https://github.com/mrijken/check-config |
max_upload_size | |
id | 955100 |
size | 117,995 |
It can be cumbersome when you have multiple projects and environments with configuration files which need to be upgraded and keep in sync regularly. Check-config will help you with i.e. making sure that the configuration file have the (upgraded) settings.
Check-config works with checker files in which you define checks, ie
# check that .venv is included in the .gitignore
[".gitignore".lines_present]
__lines__ = ".venv"
With check-config
you can check (for example in a build pipeline) whether your files passed the checks.
Most checks can also be automatically fixed with check-config --fix
, so in this case a missing line will
be added to the .gitignore
.
A large number of file types and checks are supported or will be supported in the near future.
Check out the documentation