Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
toluaina committed Apr 26, 2022
1 parent 8a52865 commit 7fde74f
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-build.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
ports:
- 6379:6379
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.3
ports:
- 9200:9200
- 9300:9300
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
10 changes: 10 additions & 0 deletions AUTHORS.rst
Expand Up @@ -13,3 +13,13 @@ Contributors
- Francois Deschenes
- chokosabe
- Densol92
- harish-everest
- Shogoki
- EgoPingvina
- sinwoobang
- asovanek
- yangyaofei
- hyperphoton
- laurent-pujol
- JacobReynolds
- echi1995
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -69,7 +69,7 @@ Example spec
...
},
{
... any other additional children
... additional children
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -13,7 +13,7 @@ services:
image: redis
command: redis-server --requirepass PLEASE_CHANGE_ME
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.3
ports:
- "9201:9200"
- "9301:9300"
Expand Down
4 changes: 2 additions & 2 deletions plugins/character/groot.py
Expand Up @@ -8,8 +8,8 @@ class GrootPlugin(plugin.Plugin):

def transform(self, doc: dict, **kwargs) -> dict:
"""Demonstrates how to modify a document."""
doc_id = kwargs["_id"]
doc_index = kwargs["_index"]
doc_id: str = kwargs["_id"]
doc_index: str = kwargs["_index"]

if doc_id == "x":
# do something...
Expand Down
2 changes: 1 addition & 1 deletion plugins/infinity.py
Expand Up @@ -9,7 +9,7 @@ class InfinityPlugin(plugin.Plugin):

def transform(self, doc: dict, **kwargs) -> dict:
"""Demonstrates infinity transform."""
doc_index = kwargs["_index"]
doc_index: str = kwargs["_index"]
if doc_index == "book":
if doc.get("publish_date"):
if doc["publish_date"].lower() == "infinity":
Expand Down
10 changes: 5 additions & 5 deletions plugins/sample.py
Expand Up @@ -28,8 +28,8 @@ class VillainPlugin(plugin.Plugin):

def transform(self, doc: dict, **kwargs) -> dict:
"""Demonstrates how to modify a document."""
doc_id = kwargs["_id"]
doc_index = kwargs["_index"]
doc_id: str = kwargs["_id"]
doc_index: str = kwargs["_index"]

if doc_id == "x":
# do something...
Expand All @@ -49,8 +49,8 @@ class HeroPlugin(plugin.Plugin):

def transform(self, doc: dict, **kwargs) -> dict:
"""Demonstrates how to modify a document."""
doc_id = kwargs["_id"]
doc_index = kwargs["_index"]
doc_id: str = kwargs["_id"]
doc_index: str = kwargs["_index"]

if doc_id == "x":
# do something...
Expand All @@ -70,7 +70,7 @@ class GeometryPlugin(plugin.Plugin):

def transform(self, doc: dict, **kwargs) -> dict:
"""Demonstrates how to modify a document."""
doc_index = kwargs["_index"]
doc_index: str = kwargs["_index"]

if doc_index == "book":

Expand Down
34 changes: 18 additions & 16 deletions requirements/dev.txt
Expand Up @@ -4,13 +4,15 @@
#
# pip-compile --output-file=requirements/dev.txt requirements/dev.in
#
async-timeout==4.0.2
# via redis
attrs==21.4.0
# via pytest
black==22.1.0
black==22.3.0
# via -r requirements/base.in
boto3==1.21.23
boto3==1.22.1
# via -r requirements/base.in
botocore==1.24.23
botocore==1.25.1
# via
# boto3
# s3transfer
Expand All @@ -26,7 +28,7 @@ cfgv==3.3.1
# via pre-commit
charset-normalizer==2.0.12
# via requests
click==8.0.4
click==8.1.2
# via
# -r requirements/base.in
# black
Expand All @@ -47,7 +49,7 @@ elasticsearch-dsl==7.4.0
# via -r requirements/base.in
environs==9.5.0
# via -r requirements/base.in
faker==13.3.2
faker==13.4.0
# via -r requirements/base.in
filelock==3.6.0
# via virtualenv
Expand Down Expand Up @@ -103,15 +105,15 @@ pathspec==0.9.0
# via black
pep517==0.12.0
# via pip-tools
pip-tools==6.5.1
pip-tools==6.6.0
# via -r requirements/dev.in
platformdirs==2.5.1
platformdirs==2.5.2
# via
# black
# virtualenv
pluggy==1.0.0
# via pytest
pre-commit==2.17.0
pre-commit==2.18.1
# via -r requirements/dev.in
psycopg2-binary==2.9.3
# via -r requirements/base.in
Expand All @@ -127,7 +129,7 @@ pydocstyle==6.1.1
# via flake8-docstrings
pyflakes==2.4.0
# via flake8
pyparsing==3.0.7
pyparsing==3.0.8
# via packaging
pytest==6.2.5
# via
Expand All @@ -148,15 +150,15 @@ python-dateutil==2.8.2
# botocore
# elasticsearch-dsl
# faker
python-dotenv==0.19.2
python-dotenv==0.20.0
# via environs
pyyaml==6.0
# via pre-commit
redis==4.1.4
redis==4.2.2
# via -r requirements/base.in
requests==2.27.1
# via requests-aws4auth
requests-aws4auth==1.1.1
requests-aws4auth==1.1.2
# via -r requirements/base.in
s3transfer==0.5.2
# via boto3
Expand All @@ -170,7 +172,7 @@ six==1.16.0
# virtualenv
snowballstemmer==2.2.0
# via pydocstyle
sqlalchemy==1.4.32
sqlalchemy==1.4.35
# via -r requirements/base.in
sqlparse==0.4.2
# via -r requirements/base.in
Expand All @@ -187,20 +189,20 @@ tomli==2.0.1
# black
# coverage
# pep517
typing-extensions==4.1.1
typing-extensions==4.2.0
# via black
urllib3==1.26.9
# via
# botocore
# elasticsearch
# requests
virtualenv==20.13.4
virtualenv==20.14.1
# via pre-commit
wheel==0.37.1
# via pip-tools
wrapt==1.14.0
# via deprecated
zipp==3.7.0
zipp==3.8.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
Expand Down
30 changes: 16 additions & 14 deletions requirements/prod.txt
Expand Up @@ -4,11 +4,13 @@
#
# pip-compile --output-file=requirements/prod.txt requirements/prod.in
#
black==22.1.0
async-timeout==4.0.2
# via redis
black==22.3.0
# via -r requirements/base.in
boto3==1.21.23
boto3==1.22.1
# via -r requirements/base.in
botocore==1.24.23
botocore==1.25.1
# via
# boto3
# s3transfer
Expand All @@ -22,7 +24,7 @@ certifi==2021.10.8
# requests
charset-normalizer==2.0.12
# via requests
click==8.0.4
click==8.1.2
# via
# -r requirements/base.in
# black
Expand All @@ -36,7 +38,7 @@ elasticsearch-dsl==7.4.0
# via -r requirements/base.in
environs==9.5.0
# via -r requirements/base.in
faker==13.3.2
faker==13.4.0
# via -r requirements/base.in
greenlet==1.1.2
# via sqlalchemy
Expand All @@ -52,32 +54,32 @@ marshmallow==3.15.0
# via environs
mypy-extensions==0.4.3
# via black
newrelic==7.6.0.173
newrelic==7.10.0.175
# via -r requirements/prod.in
packaging==21.3
# via
# marshmallow
# redis
pathspec==0.9.0
# via black
platformdirs==2.5.1
platformdirs==2.5.2
# via black
psycopg2-binary==2.9.3
# via -r requirements/base.in
pyparsing==3.0.7
pyparsing==3.0.8
# via packaging
python-dateutil==2.8.2
# via
# botocore
# elasticsearch-dsl
# faker
python-dotenv==0.19.2
python-dotenv==0.20.0
# via environs
redis==4.1.4
redis==4.2.2
# via -r requirements/base.in
requests==2.27.1
# via requests-aws4auth
requests-aws4auth==1.1.1
requests-aws4auth==1.1.2
# via -r requirements/base.in
s3transfer==0.5.2
# via boto3
Expand All @@ -86,13 +88,13 @@ six==1.16.0
# elasticsearch-dsl
# python-dateutil
# requests-aws4auth
sqlalchemy==1.4.32
sqlalchemy==1.4.35
# via -r requirements/base.in
sqlparse==0.4.2
# via -r requirements/base.in
tomli==2.0.1
# via black
typing-extensions==4.1.1
typing-extensions==4.2.0
# via black
urllib3==1.26.9
# via
Expand All @@ -101,5 +103,5 @@ urllib3==1.26.9
# requests
wrapt==1.14.0
# via deprecated
zipp==3.7.0
zipp==3.8.0
# via importlib-metadata

0 comments on commit 7fde74f

Please sign in to comment.