Update .pre-commit-config.yaml

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி 2022-04-09 19:09:22 +05:30
parent 07af20a55f
commit 8d8e6fa2e8
3 changed files with 139 additions and 112 deletions

View File

@ -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'

View File

@ -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