-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bumped version v3.2.0 * Add delete raise keyerror (#81) * Added dict_compliant flag, for delete it will raise if key not set * Changed passed the linters * Changed docstring * Added insertion ordering under the dict_compliant flag * Changed passed the linters * Changed new naming convention for tests * Added pydocstyle as doctype check * Changed docstring indentation issue * Changed test naming convention * Added testing for the dict_compliant mode * Changed moved ordered python dict into new class * Added new file * Added sphinx docs for new file * Added tests, and raised not implemented for chain commands on PythonRedisDict * Changed updated readme
- Loading branch information
Showing
23 changed files
with
1,478 additions
and
429 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "redis-dict" | ||
version = "3.1.2" | ||
version = "3.2.0" | ||
description = "Dictionary with Redis as storage backend" | ||
authors = [ | ||
{name = "Melvin Bijman", email = "[email protected]"}, | ||
|
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,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rm -rf .venv_dev | ||
python3 -m venv .venv_dev | ||
source .venv_dev/bin/activate | ||
|
||
pip install --upgrade pip | ||
pip install -e ".[dev]" | ||
|
||
deactivate |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
#!/bin/bash | ||
set -e | ||
|
||
if [ ! -d ".venv_dev" ]; then | ||
echo "Virtual environment not found. Running build script..." | ||
./scripts/build_dev.sh | ||
fi | ||
|
||
source .venv_dev/bin/activate | ||
|
||
# Type Check | ||
python -m mypy | ||
|
||
# Doctype Check | ||
darglint src/redis_dict/ | ||
|
||
# Multiple linters | ||
python -m pylama -i E501,E231 src | ||
|
||
# Security Check | ||
bandit -r src/redis_dict | ||
|
||
# Docstring Check | ||
pydocstyle src/redis_dict/ | ||
|
||
# Pylint | ||
pylint src/ | ||
|
||
deactivate |
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,9 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
python3 -m venv .venv_dev | ||
source .venv_dev/bin/activate | ||
if [ ! -d ".venv_dev" ]; then | ||
echo "Virtual environment not found. Running build script..." | ||
./scripts/build_dev.sh | ||
fi | ||
|
||
python -m unittest discover -s tests | ||
|
||
deactivate | ||
.venv_dev/bin/python -m unittest discover -s tests --failfast -v |
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.