From e1bb5d0b2950cc1cd4ed589e2785840f061da019 Mon Sep 17 00:00:00 2001 From: Peter Dekkers Date: Sun, 15 Dec 2024 15:49:38 +0100 Subject: [PATCH] fixed some small findinds in config --- .vscode/settings.json | 12 +----------- pyproject.toml | 1 + roboquant/alpaca/__init__.py | 2 ++ roboquant/brokers/__init__.py | 2 ++ roboquant/traders/__init__.py | 2 ++ 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index dfed2d7..4afbf0d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -33,15 +33,5 @@ "python.testing.unittestEnabled": true, "[python]": { "editor.defaultFormatter": "charliermarsh.ruff" - }, - "pylint.ignorePatterns": [ - "*samples/*.py" - ], - "flake8.ignorePatterns": [ - "*samples/*.py" - ], - "python.analysis.exclude": [ - "**/samples", "**/Interactive*.py" - ], - "python.analysis.typeCheckingMode": "standard" + } } diff --git a/pyproject.toml b/pyproject.toml index 4c7f861..9c169a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,7 @@ ignore = ["F401"] [tool.pyright] reportOptionalOperand = "none" +typeCheckingMode = "standard" [project] name = "roboquant" diff --git a/roboquant/alpaca/__init__.py b/roboquant/alpaca/__init__.py index 6e2eadf..02d4720 100644 --- a/roboquant/alpaca/__init__.py +++ b/roboquant/alpaca/__init__.py @@ -1,2 +1,4 @@ from roboquant.alpaca.feed import AlpacaLiveFeed, AlpacaHistoricCryptoFeed, AlpacaHistoricStockFeed from roboquant.alpaca.broker import AlpacaBroker + +__all__ = ["AlpacaLiveFeed", "AlpacaHistoricCryptoFeed", "AlpacaHistoricStockFeed", "AlpacaBroker"] \ No newline at end of file diff --git a/roboquant/brokers/__init__.py b/roboquant/brokers/__init__.py index a236032..8c2306e 100644 --- a/roboquant/brokers/__init__.py +++ b/roboquant/brokers/__init__.py @@ -1,2 +1,4 @@ from .broker import Broker from .simbroker import SimBroker + +__all__ = ["Broker", "SimBroker"] diff --git a/roboquant/traders/__init__.py b/roboquant/traders/__init__.py index 26f5341..ebc71e1 100644 --- a/roboquant/traders/__init__.py +++ b/roboquant/traders/__init__.py @@ -1,2 +1,4 @@ from .trader import Trader from .flextrader import FlexTrader + +__all__ = ["Trader", "FlexTrader"]