Update .pre-commit-config.yaml
This commit is contained in:
parent
07af20a55f
commit
8d8e6fa2e8
@ -11,7 +11,34 @@ repos:
|
||||
rev: 'v0.942'
|
||||
hooks:
|
||||
- id: mypy
|
||||
# stages: [push]
|
||||
pass_filenames: false # suppress the normal filename passing
|
||||
files: ^freqtrade/ # filter the files down to a specific subdirectory
|
||||
# pre-commit only supports running at the root of a repo since that's where
|
||||
# git hooks run. but it also allows running arbitrary code so you can
|
||||
# step outside of those bounds
|
||||
# note that `bash` will reduce your portability slightly
|
||||
verbose: true
|
||||
entry: mypy freqtrade
|
||||
additional_dependencies:
|
||||
- types-cachetools==5.0.0
|
||||
- types-filelock==3.2.5
|
||||
- types-python-dateutil==2.8.10
|
||||
- types-requests==2.27.15
|
||||
- types-tabulate==0.8.6
|
||||
- types-urllib3==1.26.11
|
||||
|
||||
- id: mypy
|
||||
pass_filenames: false
|
||||
files: ^scripts/
|
||||
entry: mypy scripts
|
||||
additional_dependencies:
|
||||
- types-cachetools==5.0.0
|
||||
- types-filelock==3.2.5
|
||||
- types-python-dateutil==2.8.10
|
||||
- types-requests==2.27.15
|
||||
- types-tabulate==0.8.6
|
||||
- types-urllib3==1.26.11
|
||||
|
||||
|
||||
- repo: https://github.com/pycqa/isort
|
||||
rev: '5.10.1'
|
||||
|
@ -578,7 +578,7 @@ class Backtesting:
|
||||
):
|
||||
trade.exit_reason = row[EXIT_TAG_IDX]
|
||||
|
||||
return self._exit_trade(trade, sell_row, close_rate)
|
||||
return self._exit_trade(trade, row, close_rate)
|
||||
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user