Skip to content

Commit e8501df

Browse files
committed
chore: fix double-space typos
1 parent e5a8aae commit e8501df

11 files changed

Lines changed: 13 additions & 15 deletions

File tree

build_helpers/create_command_partials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def extract_command_partials():
8787
help_output = _get_help_output(subparser)
8888
_write_partial_file(f"docs/commands/{command}.md", help_output)
8989
else:
90-
print(f" Warning: subcommand '{command}' not found in parser")
90+
print(f" Warning: subcommand '{command}' not found in parser")
9191

9292
# freqtrade-client still uses subprocess as requested
9393
print("Running for freqtrade-client")

freqtrade/exchange/check_exchange.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ def check_exchange(config: Config, check_for_bad: bool = True) -> bool:
5151
if not valid:
5252
if check_for_bad:
5353
raise OperationalException(
54-
f'Exchange "{exchange}" will not work with Freqtrade. Reason: {reason}.'
54+
f'Exchange "{exchange}" will not work with Freqtrade. Reason: {reason}.'
5555
)
5656
else:
57-
logger.warning(
58-
f'Exchange "{exchange}" will not work with Freqtrade. Reason: {reason}.'
59-
)
57+
logger.warning(f'Exchange "{exchange}" will not work with Freqtrade. Reason: {reason}.')
6058

6159
if MAP_EXCHANGE_CHILDCLASS.get(exchange, exchange) in SUPPORTED_EXCHANGES:
6260
logger.info(

freqtrade/freqai/data_kitchen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def buffer_timerange(self, timerange: TimeRange):
990990
are populated.
991991
992992
The main example use is when predicting maxima and minima, the argrelextrema
993-
function cannot know the maxima/minima at the edges of the timerange. To improve
993+
function cannot know the maxima/minima at the edges of the timerange. To improve
994994
model accuracy, it is best to compute argrelextrema on the full timerange
995995
and then use this function to cut off the edges (buffer) by the kernel.
996996

freqtrade/freqai/prediction_models/SKLearnRandomForestClassifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def predict(
6363
) -> tuple[DataFrame, npt.NDArray[np.int_]]:
6464
"""
6565
Filter the prediction features data and predict with it.
66-
:param unfiltered_df: Full dataframe for the current backtest period.
66+
:param unfiltered_df: Full dataframe for the current backtest period.
6767
:return:
6868
:pred_df: dataframe containing the predictions
6969
:do_predict: np.array of 1s and 0s to indicate places where freqai needed to remove

freqtrade/freqai/prediction_models/XGBoostRFClassifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def predict(
6767
) -> tuple[DataFrame, npt.NDArray[np.int_]]:
6868
"""
6969
Filter the prediction features data and predict with it.
70-
:param unfiltered_df: Full dataframe for the current backtest period.
70+
:param unfiltered_df: Full dataframe for the current backtest period.
7171
:return:
7272
:pred_df: dataframe containing the predictions
7373
:do_predict: np.array of 1s and 0s to indicate places where freqai needed to remove

freqtrade/optimize/backtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def _try_close_open_order(
757757
) -> bool:
758758
"""
759759
Check if an order is open and if it should've filled.
760-
:return: True if the order filled.
760+
:return: True if the order filled.
761761
"""
762762
if order and self._get_order_filled(order.ft_price, row):
763763
order.close_bt_order(current_date, trade)

freqtrade/optimize/optimize_reports/optimize_reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def generate_pair_metrics( #
197197
skip_nan: bool = False,
198198
) -> list[dict]:
199199
"""
200-
Generates and returns a list for the given backtest data and the results dataframe
200+
Generates and returns a list for the given backtest data and the results dataframe
201201
:param pairlist: Pairlist used
202202
:param stake_currency: stake-currency - used to correctly name headers
203203
:param starting_balance: Starting balance

freqtrade/persistence/wallet_history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ class WalletHistory(ModelBase):
4545
def __repr__(self) -> str:
4646
return (
4747
f"WalletHistory(timestamp={self.timestamp}, currency={self.currency}, "
48-
f"rate={self.rate}, total_quote={self.total_quote}, "
48+
f"rate={self.rate}, total_quote={self.total_quote}, "
4949
f"balance={self.balance}, leverage={self.leverage})"
5050
)

freqtrade/plot/plotting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def plot_area(
356356
:param indicator_b: indicator name as populated in strategy
357357
:param label: label for the filled area
358358
:param fill_color: color to be used for the filled area
359-
:return: fig with added filled_traces plot
359+
:return: fig with added filled_traces plot
360360
"""
361361
if indicator_a in data and indicator_b in data:
362362
# 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:
383383
:param data: candlestick DataFrame
384384
:param indicators: dict with indicators. ie.: plot_config['main_plot'] or
385385
plot_config['subplots'][subplot_label]
386-
:return: fig with added filled_traces plot
386+
:return: fig with added filled_traces plot
387387
"""
388388
for indicator, ind_conf in indicators.items():
389389
if "fill_to" in ind_conf:

freqtrade/rpc/rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ def _rpc_count(self) -> dict[str, float]:
14071407
}
14081408

14091409
def _rpc_locks(self) -> dict[str, Any]:
1410-
"""Returns the current locks"""
1410+
"""Returns the current locks"""
14111411

14121412
locks = PairLocks.get_pair_locks(None)
14131413
return {"lock_count": len(locks), "locks": [lock.to_json() for lock in locks]}

0 commit comments

Comments
 (0)