colrev.ops.checker.Checker¶
- class Checker(*, review_manager)[source]¶
Bases:
object
The CoLRev checker makes sure the project setup is ok
Methods
Check whether propagated IDs were changed
Check field values
Check whether the repository is in a consistent state Entrypoint for pre-commit hooks
Calls data.main() to update the stats
Calls all checks that require prior data (take longer)
Check the repository setup
Check the sources
Check for invalid state transitions
Get the colrev version as a list: (last_version, current_version)
Check whether CoLRev operates in a virtual environment
Attributes
records
- check_change_in_propagated_id(*, prior_id, new_id='TBD', project_context)[source]¶
Check whether propagated IDs were changed
A propagated ID is a record ID that is stored outside the records.bib. Propagated IDs should not be changed in the records.bib because this would break the link between the propagated ID and its metadata.
- Return type:
list
- check_repo()[source]¶
Check whether the repository is in a consistent state Entrypoint for pre-commit hooks
- Return type:
dict
- check_repo_extended()[source]¶
Calls all checks that require prior data (take longer)
- Return type:
list
- check_status_transitions(*, status_data)[source]¶
Check for invalid state transitions
- Return type:
None