# pytest_notebook_policy > Pytest plugin for notebook policy and quality checks ## Docs ### API Reference #### Dataclasses > Dataclass definitions - [Violation](https://databooth.github.io/pytest-notebook-policy/reference/Violation.html): Violation(path: 'Path', line: 'int', code: 'str', message: 'str') #### Functions > Utility functions - [scan_file](https://databooth.github.io/pytest-notebook-policy/reference/scan_file.html)