From 998035e756f74337215899f88bb880c728730b48 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Nov 2021 16:43:15 +0000 Subject: [PATCH 1/3] Bump black from 21.10b0 to 21.11b1 Bumps [black](https://github.com/psf/black) from 21.10b0 to 21.11b1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/commits) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- poetry.lock | 12 ++++++------ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/poetry.lock b/poetry.lock index b9dcf24..6595570 100644 --- a/poetry.lock +++ b/poetry.lock @@ -108,7 +108,7 @@ stevedore = ">=1.20.0" [[package]] name = "black" -version = "21.10b0" +version = "21.11b1" description = "The uncompromising code formatter." category = "dev" optional = false @@ -119,9 +119,9 @@ click = ">=7.1.2" mypy-extensions = ">=0.4.3" pathspec = ">=0.9.0,<1" platformdirs = ">=2" -regex = ">=2020.1.8" +regex = ">=2021.4.4" tomli = ">=0.2.6,<2.0.0" -typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\""} +typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\" and implementation_name == \"cpython\""} typing-extensions = [ {version = ">=3.10.0.0", markers = "python_version < \"3.10\""}, {version = "!=3.10.0.1", markers = "python_version >= \"3.10\""}, @@ -1200,7 +1200,7 @@ testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytes [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "7373a5c4378dfa58ba49c5c701193d59ed1c4549437ee5fabccc6bc9b4a4b400" +content-hash = "a373dba5140c48e8b36338c0c60fc167edbfc5aaeba6cb6e1980c23453c473a8" [metadata.files] aioredis = [ @@ -1240,8 +1240,8 @@ bandit = [ {file = "bandit-1.7.0.tar.gz", hash = "sha256:8a4c7415254d75df8ff3c3b15cfe9042ecee628a1e40b44c15a98890fbfc2608"}, ] black = [ - {file = "black-21.10b0-py3-none-any.whl", hash = "sha256:6eb7448da9143ee65b856a5f3676b7dda98ad9abe0f87fce8c59291f15e82a5b"}, - {file = "black-21.10b0.tar.gz", hash = "sha256:a9952229092e325fe5f3dae56d81f639b23f7131eb840781947e4b2886030f33"}, + {file = "black-21.11b1-py3-none-any.whl", hash = "sha256:802c6c30b637b28645b7fde282ed2569c0cd777dbe493a41b6a03c1d903f99ac"}, + {file = "black-21.11b1.tar.gz", hash = "sha256:a042adbb18b3262faad5aff4e834ff186bb893f95ba3a8013f09de1e5569def2"}, ] bleach = [ {file = "bleach-4.1.0-py2.py3-none-any.whl", hash = "sha256:4d2651ab93271d1129ac9cbc679f524565cc8a1b791909c4a51eac4446a15994"}, diff --git a/pyproject.toml b/pyproject.toml index 46df923..3465252 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ mypy = "^0.910" pytest = "^6.2.4" ipdb = "^0.13.9" pylint = "^2.11.1" -black = "^21.9b0" +black = "^21.11b1" isort = "^5.9.3" flake8 = "^4.0.1" bandit = "^1.7.0" From 7a46970190f816afe464715df8fad4d19d069f84 Mon Sep 17 00:00:00 2001 From: Simon Prickett Date: Thu, 18 Nov 2021 21:28:46 +0000 Subject: [PATCH 2/3] Fixed issue and bug reporting links Issue and bug reporting links were 404. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0459509..01ce24c 100644 --- a/README.md +++ b/README.md @@ -326,9 +326,9 @@ To learn more, read [our documentation](docs/redis_modules.md). We'd love your contributions! -**Bug reports** are especially helpful at this stage of the project. [You can open a bug report on GitHub](https://github.com/redis-om/redis-om-python/issues/new). +**Bug reports** are especially helpful at this stage of the project. [You can open a bug report on GitHub](https://github.com/redis/redis-om-python/issues/new). -You can also **contribute documentation** -- or just let us know if something needs more detail. [Open an issue on GitHub](https://github.com/redis-om/redis-om-python/issues/new) to get started. +You can also **contribute documentation** -- or just let us know if something needs more detail. [Open an issue on GitHub](https://github.com/redis/redis-om-python/issues/new) to get started. ## 📝 License From c1e10b56297edae963ad1fc975af294703374489 Mon Sep 17 00:00:00 2001 From: Simon Prickett Date: Thu, 18 Nov 2021 21:41:22 +0000 Subject: [PATCH 3/3] Formatting fix for creating a customer and minor typo fix. --- docs/fastapi_integration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/fastapi_integration.md b/docs/fastapi_integration.md index 423263e..8534ddf 100644 --- a/docs/fastapi_integration.md +++ b/docs/fastapi_integration.md @@ -118,11 +118,11 @@ Next, start the server: $ poetry run uvicorn --reload main:test Then, in another shell, create a customer: - +``` $ curl -X POST "http://localhost:8000/customer" -H 'Content-Type: application/json' -d '{"first_name":"Andrew","last_name":"Brookins","email":"a@example.com","age":"38","join_date":"2020 -01-02"}' {"pk":"01FM2G8EP38AVMH7PMTAJ123TA","first_name":"Andrew","last_name":"Brookins","email":"a@example.com","join_date":"2020-01-02","age":38,"bio":""} - +``` Get a copy of the value for "pk" and make another request to get that customer: $ curl "http://localhost:8000/customer/01FM2G8EP38AVMH7PMTAJ123TA" @@ -133,7 +133,7 @@ You can also get a list of all customer PKs: $ curl "http://localhost:8000/customers" {"customers":["01FM2G8EP38AVMH7PMTAJ123TA"]} -## Redsi OM with Asyncio +## Redis OM with Asyncio Redis OM is designed to work with asyncio, so you can use Redis OM models asynchronously within FastAPI applications.