-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve creating new state classes in
combine_reducers
up…
…on registering/unregistering sub-reducers feat: add test fixture for snapshot testing the store chore(test): add test infrastructure for snapshot testing the store test: move demo files to test files and update the to use snapshot fixture
- Loading branch information
Showing
32 changed files
with
823 additions
and
208 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ nosetests.xml | |
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
tests/**/results/*mismatch.json | ||
|
||
# Translations | ||
*.mo | ||
|
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
Large diffs are not rendered by default.
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "python-redux" | ||
version = "0.11.0" | ||
version = "0.12.0" | ||
description = "Redux implementation for Python" | ||
authors = ["Sassan Haradji <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
@@ -9,7 +9,7 @@ packages = [{ include = "redux" }] | |
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
python-immutable = "^1.0.2" | ||
python-immutable = "^1.0.5" | ||
typing-extensions = "^4.9.0" | ||
|
||
[tool.poetry.group.dev] | ||
|
@@ -18,7 +18,9 @@ optional = true | |
[tool.poetry.group.dev.dependencies] | ||
poethepoet = "^0.24.4" | ||
pyright = "^1.1.354" | ||
ruff = "^0.3.2" | ||
ruff = "^0.3.3" | ||
pytest = "^8.1.1" | ||
pytest-cov = "^4.1.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
@@ -31,7 +33,8 @@ todo_demo = "todo_demo:main" | |
[tool.poe.tasks] | ||
lint = "ruff check . --unsafe-fixes" | ||
typecheck = "pyright -p pyproject.toml ." | ||
sanity = ["typecheck", "lint"] | ||
test = "pytest --cov=redux --cov-report=term-missing" | ||
sanity = ["typecheck", "lint", "test"] | ||
|
||
[tool.ruff] | ||
lint.select = ['ALL'] | ||
|
@@ -44,6 +47,9 @@ docstring-quotes = "double" | |
inline-quotes = "single" | ||
multiline-quotes = "double" | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"tests/*" = ["S101"] | ||
|
||
[tool.ruff.format] | ||
quote-style = 'single' | ||
|
||
|
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
Oops, something went wrong.