You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hatch run test:types ${{ steps.files.outputs.all_changed_files }}
Proposed Changes:
whenever at least one python file is changed, make mypy run across all the codebase
How did you test it?
CI; triggered a run by temporarily changing a python file (9b5457a) -> mypy run (failures in the logs are related to #9102)
In this case, mypy spent 1m22s (for comparison, in #9099, mypy ran on a single file and took 1m5s).
Notes for the reviewer
Perhaps we have not done this in the past because mypy is slow...
However, the lint job (including mypy) depends on unit tests and runs concurrently with integration tests (which are slower), so all in all I don't think this change would make people wait any longer.
I have updated the related issue with new insights and changes
I added unit tests and updated the docstrings
I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
lint job (which includes mypy) currently takes < 2 minutes, while integration tests running at the same time take around 7 minutes. Even if running mypy on all files adds 30s–1m to the lint job, it would not be a bottleneck for contributors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
haystack/.github/workflows/tests.yml
Line 249 in dae8c7b
Proposed Changes:
How did you test it?
CI; triggered a run by temporarily changing a python file (9b5457a) -> mypy run (failures in the logs are related to #9102)
In this case, mypy spent 1m22s (for comparison, in #9099, mypy ran on a single file and took 1m5s).
Notes for the reviewer
Perhaps we have not done this in the past because mypy is slow...
However, the
lintjob (including mypy) depends on unit tests and runs concurrently with integration tests (which are slower), so all in all I don't think this change would make people wait any longer.Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.