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

Enable mypy on Invoke tasks #27254

Merged
merged 4 commits into from
Jul 3, 2024
Merged

Enable mypy on Invoke tasks #27254

merged 4 commits into from
Jul 3, 2024

Conversation

FlorentClarret
Copy link
Member

@FlorentClarret FlorentClarret commented Jul 2, 2024

What does this PR do?

Enable mypy on Invoke tasks and fix the attr-defined errors we have.

For now, I just ignore all the other errors we have so we won't get any new errors out of this list. I'll fix them one by one in the future.

Type annotations are not enforced, when I had a doubt because there was something obviously wrong I just deleted the annotation to fix the error. Having no type annotations is better than having the wrong one.

I bumped the base image to get DataDog/datadog-agent-buildimages#613

Motivation

Proper fix for #27247

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

@FlorentClarret FlorentClarret added changelog/no-changelog qa/no-code-change No code change in Agent code requiring validation labels Jul 3, 2024
@FlorentClarret FlorentClarret marked this pull request as ready for review July 3, 2024 06:04
@FlorentClarret FlorentClarret requested review from a team as code owners July 3, 2024 06:04
Copy link
Contributor

@gjulianm gjulianm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think it's great we're adding typing linters :D

@FlorentClarret
Copy link
Member Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Jul 3, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 25m.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit 73d6e33 into main Jul 3, 2024
290 checks passed
@dd-mergequeue dd-mergequeue bot deleted the florentclarret/mypy-add branch July 3, 2024 10:17
@github-actions github-actions bot added this to the 7.56.0 milestone Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants