-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: leakpro | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- dotmap>=1.3.30 # core non-optional dependency | ||
- loguru>=0.6.0 # core non-optional dependency | ||
- matplotlib>=3.6.0 # core non-optional dependency | ||
- numpy==1.23.5 # core non-optional depedency | ||
- pytest # for tests | ||
- python>=3.9 # core non-optional dependency |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class LEAKPRO: | ||
def add(self, a, b): | ||
return a + b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from leakpro.leakpro import ( | ||
LEAKPRO, | ||
) # look in leakpro package for a module named leakpro.py and import LEAKPRO class | ||
|
||
|
||
def test_add(): | ||
a = LEAKPRO() | ||
assert a.add(2, 3) == 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[pytest] | ||
minversion = 7.0 | ||
testpaths = | ||
leakpro/tests | ||
pythonpath = . |