-
Notifications
You must be signed in to change notification settings - Fork 16
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
Recursion Error #65
Comments
You can try to use flake8 on selected Python scripts to isolate the file(s) faster. |
I did do that today. |
Hi @jonyscathe , without a concrete reproducible case, it may be hard for me to visualize what exactly happened to you. You can narrow the issue down to a function/method (if it's a method in a class, you can remove the other methods; the reproducible case doesn't even have to be syntactically correct -- it can have uninitialized names). |
I have been trying to reproduce this in a simpler case but have not been able to so far. |
I suppose you cannot share the code of that whole class with me? (If you'd like to share it in private, you can email it to me. My email is: ... If you'd rather not share that code, maybe you can try to replace This section in the documentation can hopefully help you walk through the code base (with breakpoint): https://jsh9.github.io/pydoclint/notes_for_developers.html#2-how-to-quickly-sanity-check-a-code-example |
Replacing deepcopy with copy does definitely solve my problem. Unfortunately I can't share that class with anyone without violating an NDA so I'm not able to do that. If replacing deepcopy with copy isn't something you want to do, then we can just close this issue. This class definitely needs some refactoring to reduce complexity anyway so this is a good reason to do that. |
Hi @jonyscathe , I made a code change to use try/catch. I'll first use |
This change is included in the new published version, 0.2.0. |
On a couple of repositories I am getting a recursion error from pydoclint in flake8.
I am running pydoclint with the following settings in my pyproject.toml tool.flake8 section:
If I remove both of those settings (but not one...) then I do not get a recursion error.
If I remove
skip-checking-short-docstrings
and changestyle
togoogle
then I do not get a recursion error.This is only happening on a couple of projects. I have not yet worked out what makes this happen or not happen on other projects with the same settings.
I will try and work out what exactly is causing this tomorrow.
The trace of the error I get is:
The text was updated successfully, but these errors were encountered: