Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
Also updates flakylist.
  • Loading branch information
maread99 committed Oct 25, 2023
1 parent d262584 commit 75a620e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 20 deletions.
6 changes: 3 additions & 3 deletions etc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --output-file=etc/requirements.txt pyproject.toml
#
certifi==2023.7.22
# via requests
charset-normalizer==3.3.0
charset-normalizer==3.3.1
# via requests
colorama==0.4.6
# via tqdm
Expand Down Expand Up @@ -51,7 +51,7 @@ tzdata==2023.3
# exchange-calendars
# market-prices (pyproject.toml)
# pandas
urllib3==2.0.6
urllib3==2.0.7
# via requests
valimp==0.1
# via market-prices (pyproject.toml)
Expand Down
12 changes: 6 additions & 6 deletions etc/requirements_dependabot/requirements_tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#
attrs==23.1.0
# via hypothesis
black==23.9.1
black==23.10.1
# via market-prices (pyproject.toml)
blosc2==2.2.9
# via tables
certifi==2023.7.22
# via requests
charset-normalizer==3.3.0
charset-normalizer==3.3.1
# via requests
click==8.1.7
# via black
Expand All @@ -33,7 +33,7 @@ flake8==6.1.0
# market-prices (pyproject.toml)
flake8-docstrings==1.7.0
# via market-prices (pyproject.toml)
hypothesis==6.87.4
hypothesis==6.88.1
# via market-prices (pyproject.toml)
idna==3.4
# via requests
Expand Down Expand Up @@ -89,11 +89,11 @@ pyflakes==3.1.0
# via flake8
pyluach==2.2.0
# via exchange-calendars
pytest==7.4.2
pytest==7.4.3
# via
# market-prices (pyproject.toml)
# pytest-mock
pytest-mock==3.11.1
pytest-mock==3.12.0
# via market-prices (pyproject.toml)
python-dateutil==2.8.2
# via
Expand Down Expand Up @@ -128,7 +128,7 @@ tzdata==2023.3
# exchange-calendars
# market-prices (pyproject.toml)
# pandas
urllib3==2.0.6
urllib3==2.0.7
# via requests
valimp==0.1
# via market-prices (pyproject.toml)
Expand Down
20 changes: 10 additions & 10 deletions etc/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#
# pip-compile --extra=dev --output-file=etc/requirements_dev.txt pyproject.toml
#
astroid==3.0.0
astroid==3.0.1
# via pylint
attrs==23.1.0
# via hypothesis
black==23.9.1
black==23.10.1
# via market-prices (pyproject.toml)
blosc2==2.2.9
# via tables
Expand All @@ -18,7 +18,7 @@ certifi==2023.7.22
# via requests
cfgv==3.4.0
# via pre-commit
charset-normalizer==3.3.0
charset-normalizer==3.3.1
# via requests
click==8.1.7
# via
Expand Down Expand Up @@ -49,7 +49,7 @@ flake8==6.1.0
# market-prices (pyproject.toml)
flake8-docstrings==1.7.0
# via market-prices (pyproject.toml)
hypothesis==6.87.4
hypothesis==6.88.1
# via market-prices (pyproject.toml)
identify==2.5.30
# via pre-commit
Expand All @@ -71,7 +71,7 @@ mccabe==0.7.0
# pylint
msgpack==1.0.7
# via blosc2
mypy==1.6.0
mypy==1.6.1
# via market-prices (pyproject.toml)
mypy-extensions==1.0.0
# via
Expand Down Expand Up @@ -129,17 +129,17 @@ pydocstyle==6.3.0
# via flake8-docstrings
pyflakes==3.1.0
# via flake8
pylint==3.0.1
pylint==3.0.2
# via market-prices (pyproject.toml)
pyluach==2.2.0
# via exchange-calendars
pyproject-hooks==1.0.0
# via build
pytest==7.4.2
pytest==7.4.3
# via
# market-prices (pyproject.toml)
# pytest-mock
pytest-mock==3.11.1
pytest-mock==3.12.0
# via market-prices (pyproject.toml)
python-dateutil==2.8.2
# via
Expand Down Expand Up @@ -189,11 +189,11 @@ tzdata==2023.3
# exchange-calendars
# market-prices (pyproject.toml)
# pandas
urllib3==2.0.6
urllib3==2.0.7
# via requests
valimp==0.1
# via market-prices (pyproject.toml)
virtualenv==20.24.5
virtualenv==20.24.6
# via pre-commit
wheel==0.41.2
# via pip-tools
Expand Down
1 change: 1 addition & 0 deletions src/market_prices/prices/config/config_yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"NYSEArca": "XNYS",
"NY Mercantile": "us_futures",
"BATS": "XNYS",
"Cboe US": "XNYS",
"DJI": "XNYS",
"SNP": "XNYS",
"Lisbon": "XLIS",
Expand Down
6 changes: 5 additions & 1 deletion src/market_prices/prices/yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,11 @@ def _ascertain_calendars(
# elif self._ticker.quotes[s]["market"] == "us24_market":
# cal = "us_futures"
else:
msg = f"Unable to ascertain calendar for symbol '{s}'."
msg = (
f"Unable to ascertain calendar for symbol '{s}'. Consider passing"
" the `calendars` parameter. (See help(PricesYahoo) for"
" documentation on the `calendars` parameter.)"
)
raise errors.CalendarError(msg)
calendars[s] = cal
return calendars
Expand Down
1 change: 1 addition & 0 deletions tests/test_yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
# ...sessions that yahoo temporarily fails to return prices for if (seemingly)
# send a high frequency of requests for prices from the same IP address.
_flakylist = (
pd.Timestamp("2023-09-08"),
pd.Timestamp("2023-09-01"),
pd.Timestamp("2023-07-17"),
pd.Timestamp("2023-04-23"),
Expand Down

0 comments on commit 75a620e

Please sign in to comment.