State.make_default#
- classmethod State.make_default(working_dir: Path | None = None, settings: dict[str, Any] | None = None, **kwargs) State #
Convenience constructor for mostly default States.
- Parameters:
- working_dirPath-like
If a directory, then this directory is the working directory. Or, if the given path is actually a file, then the directory where the file lives is the working directory (typically as a convenience for using __file__ in testing).
- settingsMapping[str, Any]
Override settings values.
- **kwargs
All other keyword arguments are forwarded to the initialize_filesystem method.
- Returns:
- State