Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Dec 16, 2023
1 parent 524bc61 commit 0439b52
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 15,307 deletions.
1,245 changes: 1 addition & 1,244 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ packages = [{include = "tinycta"}]

[tool.poetry.dependencies]
python = ">=3.9.0,<3.13"
pandas = "*"
numpy = "*"

[tool.poetry.dev-dependencies]
pytest = "*"
pytest-cov = "*"
pre-commit = "*"
plotly = "*"
cvxsimulator = "*"
pandas = "*"

[build-system]
requires = ["poetry>=1.6.0"]
Expand Down
19 changes: 1 addition & 18 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from pathlib import Path

import numpy as np
import pandas as pd
import pytest

Expand All @@ -18,22 +17,6 @@ def resource_fixture():
def prices(resource_dir):
"""prices fixture"""

frame = pd.read_csv(
resource_dir / "prices_hashed.csv", index_col=0, header=0, parse_dates=True
)

if not frame.index.is_monotonic_increasing:
raise AssertionError

return frame


@pytest.fixture()
def position(resource_dir):
return pd.read_csv(
resource_dir / "cashposition.csv", index_col=0, header=0, parse_dates=True
resource_dir / "prices_hashed.csv", index_col=0, header=0, parse_dates=True
)


def sharpe_ratio(ts):
return np.sqrt(252) * ts.mean() / ts.std()
13,910 changes: 0 additions & 13,910 deletions tests/resources/cashposition.csv

This file was deleted.

43 changes: 0 additions & 43 deletions tests/test_cvxsimulator.py

This file was deleted.

72 changes: 0 additions & 72 deletions tinycta/month.py

This file was deleted.

17 changes: 0 additions & 17 deletions tinycta/types.py

This file was deleted.

0 comments on commit 0439b52

Please sign in to comment.