flakeheaven._logic._snapshot

class flakeheaven._logic._snapshot.Snapshot(*, cache_path: pathlib.Path, file_path: pathlib.Path)[source]

Bases: object

_digest: Optional[str] = None
_exists: Optional[bool] = None
_results = None
classmethod create(checker: flake8.checker.FileChecker, options: flake8.options.manager.OptionManager) flakeheaven._logic._snapshot.Snapshot[source]
property digest: Optional[str]

Get hex digest for the current content of the file

dump(results) None[source]
dumps(results) str[source]
exists() bool[source]

Returns True if cache file exists and is actual.

property results

returns cached checks results for the given file

flakeheaven._logic._snapshot.prepare_cache(path=PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/flakeheaven/checkouts/stable/docs/.flakeheaven_cache'))[source]