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
I have set up a developer environment by following the contributing guide. I made a small change to albumentations\augmentations\geometric\functional.py but the pre-commit mypy tests keep failing.
Are you sure that you are using the same interpreter as pre-commit? Because I see that you have installed types-PyYAML, but pre-commit can not find it.
I think you are right. Is there are way to see which interpreter pre-commit is using? Or is there a way to change the interpreter that pre-commit is using?
🐛 Bug
I have set up a developer environment by following the contributing guide. I made a small change to
albumentations\augmentations\geometric\functional.py
but the pre-commit mypy tests keep failing.To Reproduce
Steps to reproduce the behavior:
print("Hello, world!")
to line 18 inalbumentations\augmentations\geometric\functional.py
git add albumentations\augmentations\geometric\functional.py
git commit -m "Test change"
The following error message should be produced.
Executing
python3 -m pip install types-PyYAML
ormypy --install-types
do not help, the same error message is produced.Expected behavior
All pre-commit tests should pass.
Environment
conda environment:
Additional context
The following issue might be relevant python/mypy#10632.
I have been able to solve the issue by adding
additional_dependencies: [ types-PyYAML==5.4.12 ]
to the following line.albumentations/.pre-commit-config.yaml
Line 23 in 5a3b230
The text was updated successfully, but these errors were encountered: