diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99d41888b27..2f27e061338 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: check-merge-conflict - id: detect-private-key - repo: https://github.com/psf/black - rev: 21.4b2 + rev: 21.5b1 hooks: - id: black - repo: https://github.com/pycqa/flake8 @@ -39,7 +39,7 @@ repos: args: [ '--baseline', '.secrets.baseline' ] exclude: package.lock.json - repo: https://github.com/asottile/pyupgrade - rev: v2.18.1 + rev: v2.18.2 hooks: - id: pyupgrade args: [ --py36-plus ] diff --git a/poetry.lock b/poetry.lock index 355ea7c56c7..e48b6024d24 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2260,9 +2260,9 @@ python-versions = "*" [[package]] name = "pyupgrade" -version = "2.18.1" +version = "2.18.2" description = "A tool to automatically upgrade syntax for newer versions." -category = "dev" +category = "main" optional = false python-versions = ">=3.6.1" @@ -2812,7 +2812,7 @@ resolved_reference = "1e29d393204abb3bde23ff3f15258ed85d3b263e" name = "tokenize-rt" version = "4.1.0" description = "A wrapper around the stdlib `tokenize` which roundtrips." -category = "dev" +category = "main" optional = false python-versions = ">=3.6.1" @@ -3145,7 +3145,7 @@ prediction = ["fbprophet", "tensorflow", "pmdarima", "transformers", "flair", "t [metadata] lock-version = "1.1" python-versions = "^3.6.8" -content-hash = "2c825896f89d8c830ec19c7e3f82fd47cb674fe19aff983fad0dcf2370873d89" +content-hash = "9bdd4cebea56bceb53c9fd55e6191da710cbe4ca875fecc048d6500a19ee38f3" [metadata.files] absl-py = [ @@ -4596,8 +4596,8 @@ pytz = [ {file = "pytz-2021.1.tar.gz", hash = "sha256:83a4a90894bf38e243cf052c8b58f381bfe9a7a483f6a9cab140bc7f702ac4da"}, ] pyupgrade = [ - {file = "pyupgrade-2.18.1-py2.py3-none-any.whl", hash = "sha256:d4066fbe134ea161e0c23eb2923d609bc6949c9d50725f2fe0ec91d0eadea21c"}, - {file = "pyupgrade-2.18.1.tar.gz", hash = "sha256:b6ac3aa12c494dbd237be1baf61ef32d51d0098130fa95374dc8c851fe4c795d"}, + {file = "pyupgrade-2.18.2-py2.py3-none-any.whl", hash = "sha256:3bbf8a6f9febe28f128c40f640e3975dba588cf3642f20a666e6ea2cd907909d"}, + {file = "pyupgrade-2.18.2.tar.gz", hash = "sha256:dc3fb2699ed206de9efd18ef683dc2a117a91328ed86945d47e125d9009226ac"}, ] pywin32 = [ {file = "pywin32-300-cp35-cp35m-win32.whl", hash = "sha256:1c204a81daed2089e55d11eefa4826c05e604d27fe2be40b6bf8db7b6a39da63"}, diff --git a/pyproject.toml b/pyproject.toml index 40f9724adb6..1d4cfceb3bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,7 @@ valinvest = "^0.0.2" bt = "^0.2.9" python-binance = "^1.0.1" grpcio = "1.34.0" +pyupgrade = "2.18.2" [tool.poetry.dev-dependencies] pytest = "^6.2.2" diff --git a/requirements-full.txt b/requirements-full.txt index 8640c796bbf..74fbb91696a 100644 --- a/requirements-full.txt +++ b/requirements-full.txt @@ -12,7 +12,7 @@ async-timeout==3.0.1; python_full_version >= "3.5.3" and python_version >= "3.6" attrs==21.2.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6" backcall==0.2.0; python_version >= "3.6" beautifulsoup4==4.9.3; python_version >= "3.5" -black==20.8b1; python_version >= "3.6" +black==21.5b1; python_version >= "3.6" bleach==3.3.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6" bpemb==0.3.3; python_version >= "3.6" bs4==0.0.1 diff --git a/requirements.txt b/requirements.txt index 3e2ec2bc3d5..8c66c6d9b40 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ async-timeout==3.0.1; python_full_version >= "3.5.3" and python_version >= "3.6" attrs==21.2.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6" backcall==0.2.0; python_version >= "3.6" beautifulsoup4==4.9.3; python_version >= "3.5" -black==20.8b1; python_version >= "3.6" +black==21.5b1; python_version >= "3.6" bleach==3.3.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6" bs4==0.0.1 bt==0.2.9; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.6.0")