Merge branch 'develop' into dependabot/pip/develop/ruff-0.0.275

This commit is contained in:
Matthias
2023-07-02 18:35:43 +02:00
committed by GitHub
5 changed files with 9 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ repos:
- types-requests==2.31.0.1 - types-requests==2.31.0.1
- types-tabulate==0.9.0.2 - types-tabulate==0.9.0.2
- types-python-dateutil==2.8.19.13 - types-python-dateutil==2.8.19.13
- SQLAlchemy==2.0.16 - SQLAlchemy==2.0.17
# stages: [push] # stages: [push]
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort

View File

@@ -112,6 +112,8 @@ MINIMAL_CONFIG = {
} }
} }
__MESSAGE_TYPE_DICT: Dict[str, Dict[str, str]] = {x: {'type': 'object'} for x in RPCMessageType}
# Required json-schema for user specified config # Required json-schema for user specified config
CONF_SCHEMA = { CONF_SCHEMA = {
'type': 'object', 'type': 'object',
@@ -354,7 +356,8 @@ CONF_SCHEMA = {
'format': {'type': 'string', 'enum': WEBHOOK_FORMAT_OPTIONS, 'default': 'form'}, 'format': {'type': 'string', 'enum': WEBHOOK_FORMAT_OPTIONS, 'default': 'form'},
'retries': {'type': 'integer', 'minimum': 0}, 'retries': {'type': 'integer', 'minimum': 0},
'retry_delay': {'type': 'number', 'minimum': 0}, 'retry_delay': {'type': 'number', 'minimum': 0},
**dict([(x, {'type': 'object'}) for x in RPCMessageType]), **__MESSAGE_TYPE_DICT,
# **{x: {'type': 'object'} for x in RPCMessageType},
# Below -> Deprecated # Below -> Deprecated
'webhookentry': {'type': 'object'}, 'webhookentry': {'type': 'object'},
'webhookentrycancel': {'type': 'object'}, 'webhookentrycancel': {'type': 'object'},

View File

@@ -515,7 +515,7 @@ class IFreqaiModel(ABC):
] ]
if ft_params.get("principal_component_analysis", False): if ft_params.get("principal_component_analysis", False):
pipe_steps.append(('pca', ds.PCA())) pipe_steps.append(('pca', ds.PCA(n_components=0.999)))
pipe_steps.append(('post-pca-scaler', pipe_steps.append(('post-pca-scaler',
SKLearnWrapper(MinMaxScaler(feature_range=(-1, 1))))) SKLearnWrapper(MinMaxScaler(feature_range=(-1, 1)))))

View File

@@ -8,7 +8,7 @@
coveralls==3.3.1 coveralls==3.3.1
ruff==0.0.275 ruff==0.0.275
mypy==1.3.0 mypy==1.4.1
pre-commit==3.3.3 pre-commit==3.3.3
pytest==7.4.0 pytest==7.4.0
pytest-asyncio==0.21.0 pytest-asyncio==0.21.0

View File

@@ -6,7 +6,7 @@ ccxt==3.1.44
cryptography==41.0.1; platform_machine != 'armv7l' cryptography==41.0.1; platform_machine != 'armv7l'
cryptography==40.0.1; platform_machine == 'armv7l' cryptography==40.0.1; platform_machine == 'armv7l'
aiohttp==3.8.4 aiohttp==3.8.4
SQLAlchemy==2.0.16 SQLAlchemy==2.0.17
python-telegram-bot==20.3 python-telegram-bot==20.3
# can't be hard-pinned due to telegram-bot pinning httpx with ~ # can't be hard-pinned due to telegram-bot pinning httpx with ~
httpx>=0.24.1 httpx>=0.24.1
@@ -38,7 +38,7 @@ orjson==3.9.1
sdnotify==0.3.2 sdnotify==0.3.2
# API Server # API Server
fastapi==0.97.0 fastapi==0.98.0
pydantic==1.10.9 pydantic==1.10.9
uvicorn==0.22.0 uvicorn==0.22.0
pyjwt==2.7.0 pyjwt==2.7.0