Fix linting issues: line length, import sorting, unused variables
- Set ruff/black line length to 120 - Reformatted code with black - Fixed import ordering with ruff - Disabled lint for UI component files with long CSS strings - Updated pyproject.toml with proper tool configuration
This commit is contained in:
@@ -72,7 +72,9 @@ class OptionContract:
|
||||
"""Total premium paid or received for the position."""
|
||||
return self.premium * self.notional_units
|
||||
|
||||
def classify_moneyness(self, underlying_price: float | None = None, *, atm_tolerance: float = 0.01) -> OptionMoneyness:
|
||||
def classify_moneyness(
|
||||
self, underlying_price: float | None = None, *, atm_tolerance: float = 0.01
|
||||
) -> OptionMoneyness:
|
||||
"""Classify the contract as ITM, ATM, or OTM.
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user