py-doq
py-doq copied to clipboard
[feauture] Search pyproject.toml upward
if a pyproject.toml exists in /the/path, and current directory is not /the/path, we doq -wf /the/path/src/a.py will fail. Why not search pyproject.toml upward from /the/path/src?
@Freed-Wu Sorry for late response.
Ah, I did't notice this. Do you have any idea to search upward?
I hope there are no conflicts when the recursive option is given.
Detect os.path.isfile("/the/path/src/pyproject.toml"), if not, detect os.path.isfile("/the/path/pyproject.toml"), ..., if os.path.isfile("/pyproject") is not, don't use pyproject.toml?
Thanks, fumm. Let me think about it for a while.