12 unstable releases (4 breaking)

0.7.1 Mar 28, 2025
0.7.0 Mar 15, 2025
0.6.1 Jan 10, 2025
0.5.1 Jan 8, 2025
0.3.2 Aug 25, 2023

#152 in Configuration

Download history 130/week @ 2025-03-15 73/week @ 2025-03-22 63/week @ 2025-03-29 3/week @ 2025-04-05 1/week @ 2025-04-12 1/week @ 2025-04-19 16/week @ 2025-05-10 20/week @ 2025-05-17

961 downloads per month

MIT license

88KB
2.5K SLoC

Check Config

I have a lot of repo's. Some config for tools like ruff, is included in the repo ie via a pyproject.toml. Without check-config it is hard to keep them in sync.

The build pipeline can check if the latest config is used via check_config. When I want to change the config, ie using a different line length, I can update the config in a repo via check_config --fix.

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.

The checker files can be located on a file/webserver or in a Python Package.

Documentation

Check out the documentation

Dependencies

~13–37MB
~561K SLoC