-
Notifications
You must be signed in to change notification settings - Fork 163
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
Support pyproject.toml based configuration #401
Comments
Hi thank you for using rope. rope's configuration file is just a Python script in
If we want to make this an officially supported ways to configure rope though, we'll want to think a bit more about the configuration schema in a way that makes sense to both rope and pyproject.toml; and figure out what to do to read settings that are common to multiple tools like indent sizes. I think this looks like a pretty straightforward ticket to add this into rope/project.py or to document how to do the config.py change above. I'm open to pull request for this if you want to take to implement this ticket? |
hey, can I have this issue? |
Thanks for the interest to look into this issue. You're welcome to take it, @akbhuker. I've assigned the issue to you. I'd suggest to start looking in the Lines 256 to 275 in 4dba2ff
Let me know if you need any thing else on the issue. |
I will write a PR to fix this issue. |
Not entirely related but is there any future plan to use setup.cfg files? A flow could be for rope to read the setup.cfg file and generate a .ropeproject/config.py file based on the settings defined in setup.cfg? this way only parsing the setup.cfg file has to be added, or would this be a bad idea? I am willing to add this if it is wanted. |
pyproject.toml is a standard. I can add setup.cfg support (especially if using the library I'm working on), but I don't know if its a good idea. |
We can specify in setup.py to install tomllib/tomli when using older Python version, but otherwise prefer the standard library version. Rope should avoid pinning its dependencies to a particular version, as to minimise version conflict with application dependencies. Personally, I don't favour a solution that generates Perhaps, in the future, rope can avoid automatically generating While there may be some potential security issues that will need to be considered with I'll accept any PRs that implements these alternative config parsers, whether that's just pyproject.toml, setup.cfg, or both. |
Is your feature request related to a problem? Please describe.
I can't use
pyproject.toml
file to configure rope (ignored_resources
).Describe the solution you'd like
The text was updated successfully, but these errors were encountered: