Compare commits
No commits in common. "OOP" and "master" have entirely different histories.
@ -13,6 +13,6 @@ repos:
|
||||
- id: ruff # Linting
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 24.4.2
|
||||
rev: stable
|
||||
hooks:
|
||||
- id: black # formatting
|
||||
|
||||
10
moduleA.py
10
moduleA.py
@ -1,10 +0,0 @@
|
||||
def addition(a=1, b=2):
|
||||
return a + b
|
||||
|
||||
|
||||
def f(x: int, y: int) -> int:
|
||||
return x + y
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(addition(5, 5))
|
||||
@ -1,2 +1,3 @@
|
||||
[tool.pytest.ini_options]
|
||||
pythonpath = ["."]
|
||||
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
from src.moduleA import addition
|
||||
|
||||
|
||||
def test_a():
|
||||
assert addition() == 3
|
||||
assert addition(5, 5) == 10
|
||||
Loading…
x
Reference in New Issue
Block a user