pre-commit vs. CI

from blog Sebastian Witowski, | ↗ original
Should I use pre-commit? Or should I set up a continuous integration in my GitLab/GitHub repository?