Closed simonw closed 1 year ago
Inspired by cog --check
and black --check
and various other linters.
black . --check
returns 1
on errors so I'll use 1
(I thought maybe it should be 2
or something else).
It's going to return 0 output, unless you pass --count
in which case it will display the count.
Or pass --check -s
to see the signatures.
The
--check
option would causesymbex
to return a non-zero exit code if it finds any matches.In this way you could use
symbex
in CI such as GitHub Actions to fail tests if any code is added which is missing types or docstrings: