Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Jan 1, 2025
1 parent 1d2aa5c commit d5dccac
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,19 @@ repos:
files: ^(cvx)
args:
['--license-filepath', 'copyright.txt', '--no-extra-eol']

- repo: https://github.com/rhysd/actionlint
rev: v1.7.5
hooks:
- id: actionlint
args: [-ignore, SC]

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
hooks:
- id: validate-pyproject

- repo: https://github.com/crate-ci/typos
rev: v1.29.0
hooks:
- id: typos
2 changes: 1 addition & 1 deletion cvx/markowitz/models/trading_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TradingCosts(Model):
def __post_init__(self) -> None:
self.parameter["power"] = cp.Parameter(shape=1, name="power", value=np.ones(1))

# intial weights before rebalancing
# initial weights before rebalancing
self.data["weights"] = cp.Parameter(
shape=self.assets, name="weights", value=np.zeros(self.assets)
)
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ dev = [


[tool.ruff]
select = ["E", "F", "I"]
line-length = 120
target-version = "py310"
exclude = [
"*__init__.py"
]

[tool.ruff.lint]
select = ["E", "F", "I"]


[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
Expand Down

0 comments on commit d5dccac

Please sign in to comment.