-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove
create_store
closure in favor of Store
class wit…
…h identical api
- Loading branch information
Showing
10 changed files
with
441 additions
and
288 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,45 +1,45 @@ | ||
[tool.poetry] | ||
name = "python-redux" | ||
version = "0.9.24" | ||
version = "0.10.0" | ||
description = "Redux implementation for Python" | ||
authors = ["Sassan Haradji <[email protected]>"] | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
packages = [{ include = "redux" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
python-immutable = "^1.0.0" | ||
python = "^3.11" | ||
python-immutable = "^1.0.2" | ||
typing-extensions = "^4.9.0" | ||
|
||
|
||
[tool.poetry.scripts] | ||
demo = "demo:main" | ||
todo_demo = "todo_demo:main" | ||
|
||
[tool.poetry.group.dev] | ||
optional = true | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
poethepoet = "^0.24.3" | ||
pyright = "^1.1.349" | ||
ruff = "^0.1.9" | ||
poethepoet = "^0.24.4" | ||
pyright = "^1.1.350" | ||
ruff = "^0.2.2" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry.scripts] | ||
demo = "demo:main" | ||
todo_demo = "todo_demo:main" | ||
|
||
[tool.poe.tasks] | ||
lint = "pyright -p pyproject.toml ." | ||
lint = "ruff . --unsafe-fixes" | ||
typecheck = "pyright -p pyproject.toml ." | ||
sanity = ["typecheck", "lint"] | ||
|
||
[tool.ruff] | ||
select = ['ALL'] | ||
ignore = [] | ||
lint.select = ['ALL'] | ||
lint.ignore = ['INP001', 'PLR0911', 'D203', 'D213'] | ||
lint.fixable = ['ALL'] | ||
lint.unfixable = [] | ||
|
||
fixable = ['ALL'] | ||
unfixable = [] | ||
|
||
[tool.ruff.flake8-quotes] | ||
[tool.ruff.lint.flake8-quotes] | ||
docstring-quotes = "double" | ||
inline-quotes = "single" | ||
multiline-quotes = "double" | ||
|
@@ -49,3 +49,6 @@ quote-style = 'single' | |
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.pyright] | ||
exclude = ['typings'] |
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,3 +1,64 @@ | ||
from .basic_types import * | ||
from .main import * | ||
from .combine_reducers import * | ||
"""Redux-like state management for Python.""" | ||
from .basic_types import ( | ||
AutorunDecorator, | ||
AutorunOptions, | ||
AutorunReturnType, | ||
AutorunType, | ||
BaseAction, | ||
BaseEvent, | ||
CompleteReducerResult, | ||
CreateStoreOptions, | ||
Dispatch, | ||
DispatchParameters, | ||
EventSubscriber, | ||
EventSubscriptionOptions, | ||
FinishAction, | ||
FinishEvent, | ||
InitAction, | ||
InitializationActionError, | ||
ReducerResult, | ||
ReducerType, | ||
Scheduler, | ||
is_complete_reducer_result, | ||
is_state_reducer_result, | ||
) | ||
from .combine_reducers import ( | ||
BaseCombineReducerState, | ||
CombineReducerAction, | ||
CombineReducerInitAction, | ||
CombineReducerRegisterAction, | ||
CombineReducerUnregisterAction, | ||
combine_reducers, | ||
) | ||
from .main import Store | ||
|
||
__all__ = ( | ||
'AutorunDecorator', | ||
'AutorunOptions', | ||
'AutorunReturnType', | ||
'AutorunType', | ||
'BaseAction', | ||
'BaseEvent', | ||
'CompleteReducerResult', | ||
'CreateStoreOptions', | ||
'Dispatch', | ||
'DispatchParameters', | ||
'EventSubscriber', | ||
'EventSubscriptionOptions', | ||
'FinishAction', | ||
'FinishEvent', | ||
'InitAction', | ||
'InitializationActionError', | ||
'ReducerResult', | ||
'ReducerType', | ||
'Scheduler', | ||
'is_complete_reducer_result', | ||
'is_state_reducer_result', | ||
'BaseCombineReducerState', | ||
'CombineReducerAction', | ||
'CombineReducerInitAction', | ||
'CombineReducerRegisterAction', | ||
'CombineReducerUnregisterAction', | ||
'combine_reducers', | ||
'Store', | ||
) |
Oops, something went wrong.