Skip to content

Commit

Permalink
more lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdz committed Jan 13, 2024
1 parent 8381d11 commit fa69506
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203, E704
extend-ignore = E203, E704, E741
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ nbconvert = "^7.2.9"
[tool.isort]
profile = "black"

[[tool.mypy.overrides]]
module = "plotly.*,scipy.*,matplotlib.*"
ignore_missing_imports = true

[build-system]
requires = ["poetry-core>=1.0.0", "setuptools==69.0.2", "mypy==1.8.0", "pandas-stubs==2.1.4.231227"]
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion yabte/utilities/plot/matplotlib/strategy_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def plot_strategy_runner(sr: StrategyRunner, settings: dict[str, Any] | None = N

vax = axs[2 * i + 1]
vax.yaxis.set_major_formatter(FuncFormatter(lambda x, p: f"{x/1000:,.0f}"))
vax.set_ylabel(f"Volume (thousands)")
vax.set_ylabel("Volume (thousands)")
vax.fmt_xdata = date_formatter

vax.bar(
Expand Down
2 changes: 1 addition & 1 deletion yabte/utilities/portopt/hierarchical_risk_parity.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _getClusterVar(cov, cItems):

def _getRecBipart(cov, sortIx):
# Compute HRP alloc
w = pd.Series(1., index=sortIx)
w = pd.Series(1.0, index=sortIx)
cItems = [sortIx] # initialize all items in one cluster
while len(cItems) > 0:
cItems = [
Expand Down

0 comments on commit fa69506

Please sign in to comment.