data-science-types icon indicating copy to clipboard operation
data-science-types copied to clipboard

Tests failing on forking

Open adimyth opened this issue 5 years ago • 5 comments

I forked the repo and ran the tests - ./check_all.sh, it resulted in 152 errors found in 4 files. How to get started?

adimyth avatar Oct 01 '20 13:10 adimyth

I think you need to first run

pip install -e .

in the main directory of the repository. I will add something about this to the README.

tmke8 avatar Oct 05 '20 10:10 tmke8

I had tried with pip install -e . "[dev]" as mentioned in your contributing section in README. But that doesn't worked either!

adimyth avatar Oct 05 '20 12:10 adimyth

Do the errors look like this?

tests/pandas_test.py:3: error: Skipping analyzing 'pandas': found module but no type hints or library stubs
tests/pandas_test.py:4: error: Skipping analyzing 'numpy': found module but no type hints or library stubs
tests/pandas_test.py:6: error: Constraint 1 becomes "Any" due to an unfollowed import
tests/pandas_test.py:6: error: Constraint 2 becomes "Any" due to an unfollowed import
tests/pandas_test.py:9: error: Argument 1 to "assert_type" becomes "Any" due to an unfollowed import
tests/pandas_test.py:9: error: Argument 2 to "assert_type" becomes "Type[Any]" due to an unfollowed import
tests/pandas_test.py:13: error: Type of variable becomes "Any" due to an unfollowed import
tests/pandas_test.py:14: error: Type of variable becomes "Any" due to an unfollowed import
...
tests/matplotlib_test.py:10: error: Type of variable becomes "List[List[Any]]" due to an unfollowed import
Found 151 errors in 3 files (checked 3 source files)

tmke8 avatar Oct 06 '20 09:10 tmke8

Yes, similar to this!

adimyth avatar Oct 06 '20 20:10 adimyth

@adimyth not sure if it makes a difference but I run pip install -e .[dev] (notice the small difference from what you mentioned) and do not see this issue.

TheCleric avatar Oct 20 '20 14:10 TheCleric