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

fix running mypy from project directory #520

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

Computerdores
Copy link
Contributor

Prior to this change, running mypy from the root directory of the repo would log errors, because mypy couldn't find the referenced implementations for import statements like this one: from src.qt.ts_qt import QtDriver. This change tells mypy that it can find these implementations in the tagstudio directory.
Fixing this is necessary for the MyPy Extension for VSCode to work and it shouldn't break the existing workflows since running mypy in the tagstudio directory still yields the same results as before.

@CyanVoxel CyanVoxel added Type: CI Continuous Integration / workflows Priority: High An important issue requiring attention Status: Review Needed A review of this is needed labels Sep 20, 2024
@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Oct 7, 2024
@CyanVoxel
Copy link
Member

Would this line in the workflow need to be changed to mypy_flags: --config-file ./pyproject.toml as well?

@yedpodtrzitko
Copy link
Collaborator

Would this line in the workflow need to be changed to mypy_flags: --config-file ./pyproject.toml as well?

it can stay as is

@CyanVoxel CyanVoxel added the Status: Mergeable The code is ready to be merged label Oct 8, 2024
@CyanVoxel CyanVoxel merged commit c348c76 into TagStudioDev:main Oct 8, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High An important issue requiring attention Status: Mergeable The code is ready to be merged Type: CI Continuous Integration / workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants