Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --check argument for CI #96

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

sobolevn
Copy link
Contributor

@sobolevn sobolevn commented Aug 7, 2024

We want to integrate stubdefaulter to django-stubs: typeddjango/django-stubs#2327

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` to `django-stubs`: typeddjango/django-stubs#2327

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.
Copy link

github-actions bot commented Aug 7, 2024

This change has no effect on how stubdefaulter would alter typeshed's stdlib. 🤖🎉

@JelleZijlstra
Copy link
Owner

The pyanalyze failures are unrelated, I think I need to cut a new pyanalyze release.

@JelleZijlstra JelleZijlstra merged commit 51f2730 into JelleZijlstra:main Aug 7, 2024
7 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants