Skip to content

Commit 2aec80c

Browse files
committed
typos
1 parent bc45315 commit 2aec80c

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.pre-commit-config.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,19 @@ repos:
4545
files: ^(cvx)
4646
args:
4747
['--license-filepath', 'copyright.txt', '--no-extra-eol']
48+
49+
- repo: https://github.com/rhysd/actionlint
50+
rev: v1.7.5
51+
hooks:
52+
- id: actionlint
53+
args: [-ignore, SC]
54+
55+
- repo: https://github.com/abravalheri/validate-pyproject
56+
rev: v0.23
57+
hooks:
58+
- id: validate-pyproject
59+
60+
- repo: https://github.com/crate-ci/typos
61+
rev: v1.29.0
62+
hooks:
63+
- id: typos

cvx/markowitz/models/trading_costs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TradingCosts(Model):
3232
def __post_init__(self) -> None:
3333
self.parameter["power"] = cp.Parameter(shape=1, name="power", value=np.ones(1))
3434

35-
# intial weights before rebalancing
35+
# initial weights before rebalancing
3636
self.data["weights"] = cp.Parameter(
3737
shape=self.assets, name="weights", value=np.zeros(self.assets)
3838
)

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,16 @@ dev = [
3535

3636

3737
[tool.ruff]
38-
select = ["E", "F", "I"]
3938
line-length = 120
4039
target-version = "py310"
4140
exclude = [
4241
"*__init__.py"
4342
]
4443

44+
[tool.ruff.lint]
45+
select = ["E", "F", "I"]
46+
47+
4548
[build-system]
4649
requires = ["hatchling"]
4750
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)