Skip to content

Use argcomplete stubs for mypy type checking#153

Closed
amilcarlucas wants to merge 1 commit intomasterfrom
argcomplete_mypy_stubs
Closed

Use argcomplete stubs for mypy type checking#153
amilcarlucas wants to merge 1 commit intomasterfrom
argcomplete_mypy_stubs

Conversation

@amilcarlucas
Copy link
Copy Markdown
Collaborator

@amilcarlucas amilcarlucas commented Feb 12, 2025

This pull request includes changes to the REUSE.toml and pyproject.toml files to add new paths and configurations.

Changes to REUSE.toml:

  • Added new annotations for files in the out/argcomplete/**/* path with the appropriate SPDX license information.

Changes to pyproject.toml:

  • Added mypy_path configuration for the argcomplete package to include stub files generated with stubgen.

@amilcarlucas amilcarlucas force-pushed the argcomplete_mypy_stubs branch from 488034f to 99099e0 Compare February 21, 2025 09:44
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 21, 2025

Test Results

  2 files    2 suites   1m 34s ⏱️
409 tests 408 ✅ 1 💤 0 ❌
818 runs  816 ✅ 2 💤 0 ❌

Results for commit 363e747.

♻️ This comment has been updated with latest results.

@amilcarlucas amilcarlucas force-pushed the argcomplete_mypy_stubs branch from 99099e0 to 363e747 Compare March 3, 2025 13:11
@amilcarlucas amilcarlucas requested a review from Copilot March 6, 2025 10:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR integrates argcomplete stubs into the project to support improved mypy type checking and updates license annotations accordingly.

  • Adds a mypy_path configuration to include argcomplete stubs in pyproject.toml.
  • Updates REUSE.toml to annotate the stub files for proper license compliance.

Reviewed Changes

File Description
pyproject.toml Adds a mypy_path setting for argcomplete stubs
REUSE.toml Adds annotations for the argcomplete stub files

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

pyproject.toml:242

  • Consider placing 'mypy_path' under a dedicated [tool.mypy] section to ensure it is properly recognized by mypy. If leaving it at the top level is intentional due to a custom configuration, please add a clarifying comment.
mypy_path = "out/argcomplete"

@amilcarlucas amilcarlucas marked this pull request as draft March 6, 2025 10:49
@amilcarlucas amilcarlucas force-pushed the argcomplete_mypy_stubs branch from 363e747 to d779225 Compare April 3, 2025 16:34
@amilcarlucas
Copy link
Copy Markdown
Collaborator Author

It looks like this is not really needed, so closing

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