-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load config from protean-specific section in pyproject.toml
Protean related settings will be nested under [tool.protean.*] sections.
- Loading branch information
Showing
7 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[tool.protean] | ||
debug = true | ||
testing = true | ||
|
||
[custom] | ||
[tool.protean.custom] | ||
FOO = "quux" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[tool.protean] | ||
debug = true | ||
testing = true | ||
|
||
[custom] | ||
[tool.protean.custom] | ||
FOO = "quux" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This folder contains a realistic pyproject.toml file with all protean settings | ||
nested under `tool.protean.*` keys. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from protean import Domain | ||
|
||
|
||
domain = Domain(__file__, "TEST24") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[tool.protean] | ||
debug = true | ||
testing = true | ||
secret_key = "tvTpk3PAfkGr5x9!2sFU%XpW7bR8cwKA" | ||
identity_strategy = "uuid" | ||
identity_type = "string" | ||
event_processing = "sync" | ||
command_processing = "sync" | ||
|
||
[tool.protean.databases.default] | ||
provider = "memory" | ||
|
||
[tool.protean.databases.memory] | ||
provider = "memory" | ||
|
||
[tool.protean.databases.sqlite] | ||
provider = "sqlalchemy" | ||
database = "sqlite" | ||
database_uri = "sqlite:///test.db" | ||
|
||
[tool.protean.brokers.default] | ||
provider = "inline" | ||
|
||
[tool.protean.caches.default] | ||
provider = "memory" | ||
|
||
[tool.protean.custom] | ||
foo = "garply" |