Skip to content

Commit

Permalink
Ruff Github Actions. CI checkout v4. ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLepelaars committed Oct 1, 2024
1 parent 411fe65 commit 31a120a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ on:
branches: [ master ]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1

test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Ruff
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1.1.0

2 changes: 2 additions & 0 deletions tests/test_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
def classic_test_data():
return pd.read_parquet("tests/test_assets/val_3_eras.parquet")


@pytest.fixture
def create_signals_sample_data():
instances = []
Expand Down Expand Up @@ -60,6 +61,7 @@ def create_signals_sample_data():
)
return pd.DataFrame(instances)


BASE_STATS_COLS = ["target", "mean", "std", "sharpe", "apy", "max_drawdown", "calmar_ratio"]
MAIN_CLASSIC_STATS_COLS = BASE_STATS_COLS + [
"autocorrelation",
Expand Down

0 comments on commit 31a120a

Please sign in to comment.