Nitpick uses plugins to handle configuration files.
There are plans to add plugins that handle certain file types, specific files, and user plugins. Check the roadmap.
Below are the currently included plugins.
Enforce config on pyproject.toml.
See also PEP 518.
Enforce configuration for .pre-commit-config.yaml.
Example: the default pre-commit hooks.
Enforce configurations for any JSON file.
Add the configurations for the file name you wish to check. Example: the default config for package.json.
Enforce configuration on text files.
To check if
some.txt file contains the lines
def (in any order):
[["some.txt".contains]] line = "abc" [["some.txt".contains]] line = "def"