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

global configuration #492

Merged
merged 7 commits into from Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/configuration.rst
Expand Up @@ -4,6 +4,7 @@ Rope supports the following configuration formats

1. pyproject.toml
2. config.py
3. pytool.toml

pyproject.toml
--------------
Expand Down Expand Up @@ -44,6 +45,10 @@ Additionally, you can run an executable function at startup of rope.
# Do whatever you like here!


pytool.toml
-----------
If neither a config.py or a pyproject.toml is present, rope will use a pytool.toml in the users configuration directory.
bagel897 marked this conversation as resolved.
Show resolved Hide resolved
It follows the exact same syntax of the pyproject.toml.


Options
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -21,7 +21,7 @@ classifiers = [
'Topic :: Software Development',
]
version = '1.1.1'
dependencies = ['pytoolconfig >= 1.1.2']
dependencies = ['pytoolconfig[global] >= 1.1.2']

[[project.authors]]
name = 'Ali Gholami Rudi'
Expand Down
1 change: 1 addition & 0 deletions rope/base/prefs.py
Expand Up @@ -272,5 +272,6 @@ def get_config(root: Folder, ropefolder: Folder) -> PyToolConfig:
custom_sources=custom_sources,
bases=[".ropefolder"],
recursive=False,
global_config=True,
)
return config