Skip to content

Commit

Permalink
feat: remove unused libs (#9)
Browse files Browse the repository at this point in the history
* fix: remove unused libs in notebook
  • Loading branch information
westonplatter authored Oct 13, 2024
1 parent cfcce1d commit 34da9b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ lint:
paths:
- "*.ipynb"

- linters: [ALL]
paths:
- CHANGELOG.md

runtimes:
enabled:
- [email protected]
Expand Down
26 changes: 3 additions & 23 deletions example_downloads_for_es_gc_cl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,16 @@
"outputs": [],
"source": [
"from datetime import datetime\n",
"from datetime import datetime, timedelta\n",
"from typing import Any, List\n",
"from typing import List\n",
"\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pandera as pa\n",
"import pytz\n",
"from ib_insync import (\n",
" IB,\n",
" Contract,\n",
" FuturesOption,\n",
" Index,\n",
" Ticker,\n",
" util,\n",
")\n",
"from loguru import logger\n",
"from loman import ComputationFactory, input_node, calc_node\n",
"from tqdm import tqdm\n",
"from ib_insync import IB, util\n",
"\n",
"from ib_insync_options.etl.ibkr_etl import map_ticker_to_exchange, MarketDataType\n",
"from ib_insync_options.etl.ibkr_etl import MarketDataType\n",
"from ib_insync_options.utils.date_utils import calc_effective_date_of_dt\n",
"from ib_insync_options.utils.dict_utils import gen_json\n",
"from ib_insync_options.utils.formatting_utils import lower_camel_case_to_snake_case\n",
"from ib_insync_options.utils.list_utils import chunks\n",
"from ib_insync_options.utils.networking import get_ibkr_host_ip\n",
"from ib_insync_options.etl.facets import FacetCoreDfColumns, CoreFacetSchema\n",
"from ib_insync_options.etl.ibkr_etl import IbkrFutureOptionData, IbkrDownloader\n",
"\n",
"import pytz\n",
"from ib_insync_options.utils.date_utils import calc_effective_date_of_dt\n",
"from ib_insync_options.etl.instrument_multiplexer import InstrumentMultiplexer"
]
},
Expand Down
1 change: 1 addition & 0 deletions tests/utils/test_formatting_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
snake_case_columns,
)


def test_convert_to_snake_case():
assert convert_to_snake_case("HelloWorld") == "hello_world"

0 comments on commit 34da9b9

Please sign in to comment.