Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.15.0
rev: v3.16.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, "from __future__ import annotations"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
Expand Down
2 changes: 1 addition & 1 deletion finrl/meta/env_stock_trading/env_nas100_wrds.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
self.min_stock_rate = min_stock_rate
beg_i, mid_i, end_i = 0, int(211210), int(422420)

(i0, i1) = (beg_i, mid_i) if if_eval else (mid_i, end_i)
i0, i1 = (beg_i, mid_i) if if_eval else (mid_i, end_i)
data_arrays = (
self.load_data(cwd) if cwd is not None else price_ary,
tech_ary,
Expand Down
1 change: 0 additions & 1 deletion finrl/meta/paper_trading/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from torch import Tensor
from torch.distributions.normal import Normal


# -----------------------------------------------------------------------------------------------------------------------------------------
# PPO

Expand Down
1 change: 0 additions & 1 deletion finrl/meta/preprocessor/example_of_shioaji_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from finrl.meta.preprocessor.preprocessors import data_split
from finrl.meta.preprocessor.shioajidownloader import SinopacDownloader


TRAIN_START_DATE = "2023-04-13"
TRAIN_END_DATE = "2024-04-13"
TRADE_START_DATE = "2024-04-13"
Expand Down
1 change: 0 additions & 1 deletion unit_tests/downloaders/test_alpaca_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from finrl.meta.data_processors.processor_alpaca import AlpacaProcessor


API_KEY = "???"
API_SECRET = "???"
API_BASE_URL = "https://paper-api.alpaca.markets"
Expand Down