fix division by zero error
update setup.cfg, improve Repository models