slotscheck can be configured through the command line options or file
Command line options¶
See the command line interface documentation.
setup.cfg files offer the same configuration
options as the CLI. See the CLI docs.
An example TOML configuration:
[tool.slotscheck] strict-imports = true exclude-modules = ''' ( (^|\.)test_ # ignore any tests |^some\.specific\.module # do not check his module ) ''' require-superclass = false
[slotscheck] strict-imports = true exclude-modules = ( (^|\.)test_ # ignore any tests |^some\.specific\.module # do not check his module ) require-superclass = false
Slotscheck will first try to find a
pyproject.toml with a
section in the current working directory. If not found, it will try to find a
Until a file is found, this search will be repeated for each parent directory.
Alternatively, you can manually specify the config file to be used with the
--settings CLI option.
Note that CLI options have precedence over a config file. Thus, you can always override what’s configured there.