Skip to content

API reference

grip is primarily a command-line tool, but its modules are importable and typed. The pages in this section are generated from the docstrings.

grip_hook

grip: keep a grip on your code.

A git hook that quizzes you about your own diff before you commit or push it.

QUESTION_COUNT module-attribute

QUESTION_COUNT = 5

Number of questions asked in every quiz. Fixed by design.

POINTS_PER_QUESTION module-attribute

POINTS_PER_QUESTION = 20

Maximum points per question. QUESTION_COUNT * POINTS_PER_QUESTION == 100.