-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CLN run isort on source code files #4235
Comments
@MarcoGorelli Please provide a little more information about it. Any error snippet would be quite helpful. I would like to work on it. Please assign it to me. |
Sure - if you look at https://github.com/pandas-dev/pandas/blob/master/.pre-commit-config.yaml you'll see that there's a hook called 'isort'. PyMC3 doesn't have it yet - there's a similar hook called Steps are:
If any of this is unclear, check the contributing guide https://github.com/pymc-devs/pymc3/blob/master/CONTRIBUTING.md , and if it's still unclear, please don't hesitate to ask for help! 😄 |
@MarcoGorelli I am trying to rebase but I am getting merge conflict.
Should I abort the rebasing or go for manually resolving the conflicts?? |
It's not clear to me why you would get conflicts, there shouldn't be any need to resolve them for this issue - I've put some suggested steps in #4239 anyway |
Now i know my mistake. I guess, I forgot to |
Also , while running pytest, i get these errors -
I ran through the web and it was mentioned that we have to explicitly import the |
@chandan5362 could you show the exact command you ran please? |
Here I a attaching the screenshot. |
you wouldn't typically run $ pytest pymc3/tests/test_memo.py Anyway, you shouldn't need to run |
isort is run on notebooks, but not on Python files. Should be pretty straightforward to run it on the source code and add it as a pre-commit hook
The text was updated successfully, but these errors were encountered: