Later we also want to add stubdefaulter to our CI, so it can check that no missing defaults are added.
--check would help us to fail the CI. We would use both --exit-zero and --check, because there would be errors when importing django modules, we can't fix it from our side. So, we need them both to work correctly. Errors will be ignored with --exit-zero while --check will return 2 if there are any new changes.
We want to integrate
stubdefaulter
todjango-stubs
: https://github.com/typeddjango/django-stubs/pull/2327Later we also want to add
stubdefaulter
to our CI, so it can check that no missing defaults are added.--check
would help us to fail the CI. We would use both--exit-zero
and--check
, because there would be errors when importing django modules, we can't fix it from our side. So, we need them both to work correctly. Errors will be ignored with--exit-zero
while--check
will return2
if there are any new changes.