Zulip Chat Archive
Stream: mathlib4
Topic: Can I run CI locally?
Dominic Steinitz (Jan 21 2026 at 08:46):
Is there some way of running the CI operations locally so as not to have to wait for CI to send me a message saying I had forgotten to do something?
Michael Rothgang (Jan 21 2026 at 08:53):
What exactly do you really want to do? CI does some things you're not interested in.
Michael Rothgang (Jan 21 2026 at 08:53):
lake build builds all your code; lake exe runLinter runs the linters on each file. lake exe lint-style checks for remaining style issues. These should get you most of the way.
Junyan Xu (Jan 21 2026 at 08:54):
#lint at the end of each file you changed may be good enough for catching things forgotten (docstrings, etc.)
Michael Rothgang (Jan 21 2026 at 08:56):
Indeed; lake exe runLinter will take in the order of a few minutes; #lint on a single file in the order of seconds.
Junyan Xu (Jan 21 2026 at 08:57):
Yeah, those global linters requiring compiling the whole mathlib are proably faster to run on the cloud.
Dominic Steinitz (Jan 21 2026 at 10:29):
Thank you both :-)
Last updated: Feb 28 2026 at 14:05 UTC