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

chore: enable mypy; actions cleanup #21

Merged
merged 8 commits into from
Aug 22, 2024
Merged

chore: enable mypy; actions cleanup #21

merged 8 commits into from
Aug 22, 2024

Conversation

danielchalef
Copy link
Member

@danielchalef danielchalef commented Aug 22, 2024

🚀 This description was created by Ellipsis for commit d38f8c3

Summary:

This PR adds MyPy type checking, updates GitHub Actions workflows, and modifies the Makefile for linting.

Key points:

  • Add MyPy type checking workflow in .github/workflows/typecheck.yml for main branch.
  • Configure MyPy to run on push and pull_request events.
  • Use depot-ubuntu-22.04 for runs-on in MyPy job.
  • Update .github/workflows/unit_tests.yml to use actions/checkout@v4 and actions/setup-python@v5.
  • Set Python version to 3.10 in workflows.
  • Install Poetry using snok/install-poetry@v1 with specific settings.
  • Cache virtual environment using actions/cache@v4.
  • Modify Makefile to enable MyPy linting by uncommenting $(MYPY) . in the lint target.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to de1fe81 in 24 seconds

More details
  • Looked at 132 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. .github/workflows/typecheck.yml:14
  • Draft comment:
    The version v4 for actions/checkout does not exist. Please use v3, which is the latest version.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment addresses a potential issue with the specified version of 'actions/checkout'. If 'v4' does not exist, this would indeed require a code change to prevent the workflow from failing. This is a valid concern as it directly impacts the functionality of the workflow.
    I might be assuming that the comment is correct without verifying the existence of 'v4'. It's possible that 'v4' does exist or is in development, and the comment could be outdated or incorrect.
    I should verify the existence of 'v4' for 'actions/checkout' to ensure the comment is accurate. If 'v4' does not exist, the comment is valid and should be kept.
    The comment should be kept if 'v4' for 'actions/checkout' does not exist, as it points out a necessary code change. Verification of the version's existence is needed.
2. .github/workflows/unit_tests.yml:15
  • Draft comment:
    The version v4 for actions/checkout does not exist. Please use v3, which is the latest version.
  • Reason this comment was not posted:
    Marked as duplicate.
3. .github/workflows/unit_tests.yml:17
  • Draft comment:
    The version v5 for actions/setup-python does not exist. Please use v4, which is the latest version.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_l0rDM1eOKw9CaSsm


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

.github/workflows/typecheck.yml Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 86ccf8b in 21 seconds

More details
  • Looked at 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_MNjZVT07UI6Xqpcn


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

.github/workflows/typecheck.yml Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 2d9baa9 in 21 seconds

More details
  • Looked at 10 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_s5Of0U3UpbUPN4B7


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 4d3d9d8 in 18 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_RljMKgPlcXHwtjIe


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

.github/workflows/typecheck.yml Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 99760c8 in 19 seconds

More details
  • Looked at 32 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/typecheck.yml:11
  • Draft comment:
    The runs-on value should be ubuntu-latest instead of depot-ubuntu-22.04 to ensure compatibility and avoid potential issues with a custom runner.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is speculative as it assumes potential issues with a custom runner without evidence. The PR author might have specific reasons for using 'depot-ubuntu-22.04', such as specific dependencies or configurations. The comment does not point out a definite issue but rather a preference or a caution, which is not actionable.
    I might be overlooking the importance of using 'ubuntu-latest' for broader compatibility. However, the PR author might have a valid reason for the change that the comment does not address.
    The PR author likely has a specific reason for choosing 'depot-ubuntu-22.04', and without evidence of an issue, the comment is not actionable. The comment does not provide a clear code change requirement.
    The comment should be removed as it is speculative and does not point out a definite issue with the code change.

Workflow ID: wflow_kAyj328ILrb1XRus


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 8ebc686 in 19 seconds

More details
  • Looked at 16 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/typecheck.yml:38
  • Draft comment:
    The cache key uses steps.setup-python.outputs.python-version, which might not be set correctly. Consider using python-version as per the setup-python action documentation.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is speculative and not directly related to the changes in the PR. It suggests a potential issue without certainty, which violates the rules for comments. The PR diff does not show any changes to the cache key or setup-python action, so the comment is not relevant to the current changes.
    I might be missing the context of the entire workflow file, but based on the diff, the comment does not seem relevant. The comment could be addressing a potential issue that is not visible in the diff.
    The comment should only address changes visible in the diff. Since the cache key was not changed in the PR, the comment is not relevant.
    Remove the comment as it is speculative and not related to the changes in the PR diff.

Workflow ID: wflow_VnjXKDC1vUl9MV7H


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on d38f8c3 in 16 seconds

More details
  • Looked at 14 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/typecheck.yml:34
  • Draft comment:
    The runs-on: depot-ubuntu-22.04 is non-standard. Consider using ubuntu-latest or a specific version like ubuntu-20.04 for better compatibility.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is suggesting a change to a line that was not modified in the PR. According to the rules, comments should not be made on code that was not changed in the PR diff. Therefore, this comment should be removed.
    I might be missing the context of why 'depot-ubuntu-22.04' is used, but since it wasn't changed in this PR, it's not relevant to comment on it.
    Even if 'depot-ubuntu-22.04' is non-standard, the comment is not relevant to the current PR changes.
    Remove the comment as it does not pertain to any changes made in this PR.

Workflow ID: wflow_sBV2p9bjdmJrQPJb


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@danielchalef danielchalef merged commit c90b4e0 into main Aug 22, 2024
4 of 5 checks passed
@danielchalef danielchalef deleted the chore/mypy branch August 22, 2024 22:10
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.

1 participant