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

[feauture] Search pyproject.toml upward #139

Open
Freed-Wu opened this issue Oct 19, 2023 · 3 comments
Open

[feauture] Search pyproject.toml upward #139

Freed-Wu opened this issue Oct 19, 2023 · 3 comments
Labels
feature request Feature request

Comments

@Freed-Wu
Copy link
Contributor

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?

@heavenshell
Copy link
Owner

@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.

@Freed-Wu
Copy link
Contributor Author

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?

@heavenshell
Copy link
Owner

Thanks, fumm.
Let me think about it for a while.

@heavenshell heavenshell added the feature request Feature request label Dec 11, 2023
@heavenshell heavenshell mentioned this issue Dec 11, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

2 participants