Skip to content

Commit

Permalink
Put library in src and test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLepelaars committed Dec 2, 2024
1 parent 2714375 commit 341c9ba
Show file tree
Hide file tree
Showing 21 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ dev = [
line-length = 300

[tool.ruff.lint]
ignore = ["F403", "F811"]
ignore = ["I001","F403", "F811"]
select = ["E", "F", "I"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from .. import BlackScholesButterflyLong, BlackScholesButterflyShort
from blackscholes import BlackScholesButterflyLong, BlackScholesButterflyShort

# Test parameters
test_S = 55.0 # Asset price of 55
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from .. import BlackScholesIronButterflyLong, BlackScholesIronButterflyShort
from blackscholes import BlackScholesIronButterflyLong, BlackScholesIronButterflyShort

# Test parameters
test_S = 25.0 # Asset price of 30
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from .. import BlackScholesIronCondorLong, BlackScholesIronCondorShort
from blackscholes import BlackScholesIronCondorLong, BlackScholesIronCondorShort

# Test parameters
test_S = 55.0 # Asset price of 55
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion blackscholes/tests/test_spread.py → tests/test_spread.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from .. import (BlackScholesBullSpread, BlackScholesBearSpread,
from blackscholes import (BlackScholesBullSpread, BlackScholesBearSpread,
BlackScholesCalendarCallSpread, BlackScholesCalendarPutSpread)

# Test parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .. import BlackScholesStraddleLong, BlackScholesStraddleShort
from blackscholes import BlackScholesStraddleLong, BlackScholesStraddleShort

# Test parameters
test_S = 55.0 # Asset price of 55
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from .. import BlackScholesStrangleLong, BlackScholesStrangleShort
from blackscholes import BlackScholesStrangleLong, BlackScholesStrangleShort

# Test parameters
test_S = 55.0 # Asset price of 55
Expand Down

0 comments on commit 341c9ba

Please sign in to comment.