Skip to content

Commit

Permalink
Merge pull request #492 from bagel897/toml
Browse files Browse the repository at this point in the history
global configuration
  • Loading branch information
lieryan committed Nov 4, 2022
2 parents 1de7bc2 + 40cb794 commit 6d5581b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,6 +1,6 @@
# **Upcoming release**

- ...
- #492, Feat: Global configuration support

# Release 1.4.0

Expand Down
9 changes: 9 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,14 @@ 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.
It follows the exact same syntax of the pyproject.toml.

- Mac OS X: ``~/Library/Application Support/pytool.toml.``
- Unix: ``~/.config/pytool.toml``` or in $XDG_CONFIG_HOME, if defined
- Windows: ``C:\Users\<username>\AppData\Local\pytool.toml``


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

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

0 comments on commit 6d5581b

Please sign in to comment.