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

REFACTOR: Add mypy checks for modin.core.dataframe.algebra #5073

Open
Tracked by #4630
mvashishtha opened this issue Oct 3, 2022 · 13 comments
Open
Tracked by #4630

REFACTOR: Add mypy checks for modin.core.dataframe.algebra #5073

mvashishtha opened this issue Oct 3, 2022 · 13 comments
Labels
Code Quality 💯 Improvements or issues to improve quality of codebase good first issue 🔰 Good for newcomers hacktoberfest Help Wanted 🌐 Issues good for external contributors. P2 Minor bugs or low-priority feature requests

Comments

@mvashishtha
Copy link
Collaborator

mvashishtha commented Oct 3, 2022

procedure:

  1. Follow contributing instructions to set up your modin development environment
  2. create a new git branch for your changes
  3. add modin/core/dataframe/algebra to mypy.ini
  4. try adding mypy types to that directory and running mypy --config-file mypy.ini modin/core/dataframe/algebra until it passes
    For example, this line:
    def register(cls, func, join_type="outer", labels="replace"):

    should become something like
    def register(cls, func: Callable, join_type: str ="outer", labels: str ="replace"):
  5. create a PR by following the contributing guide.
@mvashishtha mvashishtha added Code Quality 💯 Improvements or issues to improve quality of codebase P2 Minor bugs or low-priority feature requests hacktoberfest labels Oct 3, 2022
@mvashishtha mvashishtha added good first issue 🔰 Good for newcomers Help Wanted 🌐 Issues good for external contributors. labels Oct 3, 2022
@mohanadtalat91
Copy link

Hello, @mvashishtha

I'm so interested in contributing for this issue, and I just want to know the problem statement or what should I do to solve this issue ??
By the way, it's my first time to contribute to "modin" repo.

Thanks in advance

@mvashishtha
Copy link
Collaborator Author

Hi @mohanadtalat91,

thank you very much for your interest. I want @sofezticated-gentleman to take this issue because I pointed it to him first in #4633.

However, it would be great if you could take issue #5079 instead. Both issues are for adding mypy types. mypy is a type checker. Integrating it into the Modin codebase will make it easier to understand the Modin code and to write bug-free code. You can read more about mypy in its documentation. For #5079, the goal is to add types to all the files in modin/core/dataframe/base, so that mypy is satisfied with the types in all files in that directory. You can make a PR to fix the issue by following the steps in the first post of this issue, except for modin/core/dataframe/base instead of modin/core/dataframe/algebra. Please let me know if you have more questions.

@yashgosa
Copy link

yashgosa commented Oct 4, 2022

@mvashishtha after following the contributing guidelines, I have cloned the repository but I am stuck at adding a remote branch
git remote add upstream git@github.com:modin-project/modin.git , it says
fatal: not a git repository (or any of the parent directories): .git

@mvashishtha
Copy link
Collaborator Author

@sofezticated-gentleman you have to go into the cloned directory, e.g. if you cloned the repo into directory modin, first do:

cd modin

Then you should be able to add the remote.

@yashgosa
Copy link

yashgosa commented Oct 4, 2022

ooh thanks, I think so that should be added to contributing document

@yashgosa
Copy link

yashgosa commented Oct 4, 2022

@mvashishtha , I'm getting error :
ERROR: Could not find a version that satisfies the requirement ray[default]>=1.4.0 (from modin[all]) (from versions: none) ERROR: No matching distribution found for ray[default]>=1.4.0
for:
$ pip install -e ".[all]"

@yashgosa
Copy link

yashgosa commented Oct 4, 2022

@mvashishtha also getting the same error for $ pip install -r requirements-dev.txt

@yashgosa
Copy link

yashgosa commented Oct 4, 2022

C:\Users\Yash PC\modin>pytest modin/pandas/test/test_concat.py


ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --cov-config=setup.cfg --cov=modin --cov-append --cov-report=xml
  inifile: C:\Users\Yash PC\modin\setup.cfg
  rootdir: C:\Users\Yash PC\modin

@yashgosa
Copy link

yashgosa commented Oct 4, 2022

@mvashishtha also is there any discord channel or some forum of this org??

@mvashishtha
Copy link
Collaborator Author

also is there any discord channel or some forum of this org??

Let's continue this conversation in the Modin slack either on a new post in #modin-development or in DMs-- my name on slack is "Mahesh Vashishtha".

For the ray error, could you please try to list the available versions of ray by following the instructions here? I'm surprised that a version of ray >= 1.4.0 is not available on your system.

@yashgosa
Copy link

yashgosa commented Oct 7, 2022

hey @mvashishtha i think so ray isnt available for windows sys but we can install it with help of anaconda and Docker

@mvashishtha
Copy link
Collaborator Author

@sofezticated-gentleman my impression is that ray is available on windows. Could you share some details of your environment, including operating system version, python version, conda version, pip version?

Do you need any more help getting your development environment set up?

@pyrito
Copy link
Collaborator

pyrito commented Oct 7, 2022

@sofezticated-gentleman I'd encourage you to go ahead and join the Modin slack so that more folks can help you get onboarded with this. Thanks for taking on this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Quality 💯 Improvements or issues to improve quality of codebase good first issue 🔰 Good for newcomers hacktoberfest Help Wanted 🌐 Issues good for external contributors. P2 Minor bugs or low-priority feature requests
Projects
None yet
Development

No branches or pull requests

4 participants