diff --git a/build_helpers/create_command_partials.py b/build_helpers/create_command_partials.py index 3f5bad52e..fe7212993 100644 --- a/build_helpers/create_command_partials.py +++ b/build_helpers/create_command_partials.py @@ -87,7 +87,7 @@ def extract_command_partials(): help_output = _get_help_output(subparser) _write_partial_file(f"docs/commands/{command}.md", help_output) else: - print(f" Warning: subcommand '{command}' not found in parser") + print(f" Warning: subcommand '{command}' not found in parser") # freqtrade-client still uses subprocess as requested print("Running for freqtrade-client") diff --git a/freqtrade/exchange/check_exchange.py b/freqtrade/exchange/check_exchange.py index 583868744..30a416cdd 100644 --- a/freqtrade/exchange/check_exchange.py +++ b/freqtrade/exchange/check_exchange.py @@ -51,12 +51,10 @@ def check_exchange(config: Config, check_for_bad: bool = True) -> bool: if not valid: if check_for_bad: raise OperationalException( - f'Exchange "{exchange}" will not work with Freqtrade. Reason: {reason}.' + f'Exchange "{exchange}" will not work with Freqtrade. Reason: {reason}.' ) else: - logger.warning( - f'Exchange "{exchange}" will not work with Freqtrade. Reason: {reason}.' - ) + logger.warning(f'Exchange "{exchange}" will not work with Freqtrade. Reason: {reason}.') if MAP_EXCHANGE_CHILDCLASS.get(exchange, exchange) in SUPPORTED_EXCHANGES: logger.info( diff --git a/freqtrade/freqai/data_kitchen.py b/freqtrade/freqai/data_kitchen.py index 30826b174..df7c827f9 100644 --- a/freqtrade/freqai/data_kitchen.py +++ b/freqtrade/freqai/data_kitchen.py @@ -990,7 +990,7 @@ class FreqaiDataKitchen: are populated. The main example use is when predicting maxima and minima, the argrelextrema - function cannot know the maxima/minima at the edges of the timerange. To improve + function cannot know the maxima/minima at the edges of the timerange. To improve model accuracy, it is best to compute argrelextrema on the full timerange and then use this function to cut off the edges (buffer) by the kernel. diff --git a/freqtrade/freqai/prediction_models/SKLearnRandomForestClassifier.py b/freqtrade/freqai/prediction_models/SKLearnRandomForestClassifier.py index b008a8ecd..9d32b148b 100644 --- a/freqtrade/freqai/prediction_models/SKLearnRandomForestClassifier.py +++ b/freqtrade/freqai/prediction_models/SKLearnRandomForestClassifier.py @@ -63,7 +63,7 @@ class SKLearnRandomForestClassifier(BaseClassifierModel): ) -> tuple[DataFrame, npt.NDArray[np.int_]]: """ Filter the prediction features data and predict with it. - :param unfiltered_df: Full dataframe for the current backtest period. + :param unfiltered_df: Full dataframe for the current backtest period. :return: :pred_df: dataframe containing the predictions :do_predict: np.array of 1s and 0s to indicate places where freqai needed to remove diff --git a/freqtrade/freqai/prediction_models/XGBoostRFClassifier.py b/freqtrade/freqai/prediction_models/XGBoostRFClassifier.py index 6760ad285..1028eebbb 100644 --- a/freqtrade/freqai/prediction_models/XGBoostRFClassifier.py +++ b/freqtrade/freqai/prediction_models/XGBoostRFClassifier.py @@ -67,7 +67,7 @@ class XGBoostRFClassifier(BaseClassifierModel): ) -> tuple[DataFrame, npt.NDArray[np.int_]]: """ Filter the prediction features data and predict with it. - :param unfiltered_df: Full dataframe for the current backtest period. + :param unfiltered_df: Full dataframe for the current backtest period. :return: :pred_df: dataframe containing the predictions :do_predict: np.array of 1s and 0s to indicate places where freqai needed to remove diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index e9edb2569..f4f5e9d62 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -757,7 +757,7 @@ class Backtesting: ) -> bool: """ Check if an order is open and if it should've filled. - :return: True if the order filled. + :return: True if the order filled. """ if order and self._get_order_filled(order.ft_price, row): order.close_bt_order(current_date, trade) diff --git a/freqtrade/optimize/optimize_reports/optimize_reports.py b/freqtrade/optimize/optimize_reports/optimize_reports.py index bea047202..ba84d8834 100644 --- a/freqtrade/optimize/optimize_reports/optimize_reports.py +++ b/freqtrade/optimize/optimize_reports/optimize_reports.py @@ -197,7 +197,7 @@ def generate_pair_metrics( # skip_nan: bool = False, ) -> list[dict]: """ - Generates and returns a list for the given backtest data and the results dataframe + Generates and returns a list for the given backtest data and the results dataframe :param pairlist: Pairlist used :param stake_currency: stake-currency - used to correctly name headers :param starting_balance: Starting balance diff --git a/freqtrade/persistence/wallet_history.py b/freqtrade/persistence/wallet_history.py index 2aef7000d..08e180937 100644 --- a/freqtrade/persistence/wallet_history.py +++ b/freqtrade/persistence/wallet_history.py @@ -45,6 +45,6 @@ class WalletHistory(ModelBase): def __repr__(self) -> str: return ( f"WalletHistory(timestamp={self.timestamp}, currency={self.currency}, " - f"rate={self.rate}, total_quote={self.total_quote}, " + f"rate={self.rate}, total_quote={self.total_quote}, " f"balance={self.balance}, leverage={self.leverage})" ) diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index 6c6f32ea1..085a198ca 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -356,7 +356,7 @@ def plot_area( :param indicator_b: indicator name as populated in strategy :param label: label for the filled area :param fill_color: color to be used for the filled area - :return: fig with added filled_traces plot + :return: fig with added filled_traces plot """ if indicator_a in data and indicator_b in data: # make lines invisible to get the area plotted, only. @@ -383,7 +383,7 @@ def add_areas(fig, row: int, data: pd.DataFrame, indicators) -> make_subplots: :param data: candlestick DataFrame :param indicators: dict with indicators. ie.: plot_config['main_plot'] or plot_config['subplots'][subplot_label] - :return: fig with added filled_traces plot + :return: fig with added filled_traces plot """ for indicator, ind_conf in indicators.items(): if "fill_to" in ind_conf: diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 446a474ef..63f00a22d 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -1407,7 +1407,7 @@ class RPC: } def _rpc_locks(self) -> dict[str, Any]: - """Returns the current locks""" + """Returns the current locks""" locks = PairLocks.get_pair_locks(None) return {"lock_count": len(locks), "locks": [lock.to_json() for lock in locks]} diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index 3d7cf1fb3..8e88cc4e7 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -2243,7 +2243,7 @@ class Telegram(RPCHandler): else: raise RPCException( "Invalid usage of command /marketdir. \n" - "Usage: */marketdir [short | long | even | none]*" + "Usage: */marketdir [short | long | even | none]*" ) async def _tg_info(self, update: Update, context: CallbackContext) -> None: