Skip to content

Commit 0e27fd1

Browse files
Merge pull request #1 from MeteoSwiss/new-feature
add a very cool new feature (demo)
2 parents 58c5eb3 + 01fc392 commit 0e27fd1

File tree

4 files changed

+27
-36
lines changed

4 files changed

+27
-36
lines changed

AUTHORS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Michele Cattaneo
1+
Michele Cattaneo
2+
Leonard Knirsch

CHANGELOG.rst

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,14 @@
22
Changelog
33
=========
44

5-
Version 0.2.0
6-
-------------
7-
8-
Features
9-
''''''''
10-
11-
- Lorem ipsum dolor sit
12-
- Consectetur adipiscing elit
13-
- Sed do eiusmod tempor incididunt
14-
15-
Bug Fixes
16-
'''''''''
17-
18-
- Ut labore et dolore magna aliqua
195

20-
Breaking Changes
21-
''''''''''''''''
22-
23-
- Ut enim ad minim veniam
24-
- Quis nostrud exercitation ullamco laboris
25-
26-
27-
Version 0.1.0
6+
Version 1.1.0
287
-------------
8+
* Added `another_dummy_func` to `main.py` that converts an integer to a float.
9+
* Updated this Changelog
2910

30-
Features
31-
''''''''
32-
33-
- Nisi ut aliquip
34-
- Ex ea commodo consequat
3511

36-
Bug Fixes
37-
'''''''''
12+
Version 1.0.0
13+
----------------
3814

39-
- Duis aute irure dolor in
40-
- Voluptate velit esse
41-
- Cillum dolore eu fugiat nulla pariatur excepteur sint oocaecat
15+
* Initial release.

open_source_template/main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ def dummy_func(input_value: float) -> int:
1717
:rtype: int
1818
"""
1919
return int(input_value)
20+
21+
def another_dummy_func(input_value: int) -> float:
22+
"""
23+
Another dummy function.
24+
25+
:param input_value: Argument to the function.
26+
:type input_value: int
27+
:return: A float.
28+
:rtype: float
29+
"""
30+
return float(input_value)

test/test_dummy_library.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
from open_source_template.main import dummy_func
1+
from open_source_template.main import another_dummy_func, dummy_func
22

33

44
def test_dummy_func():
5-
"""Test the correctness of dummy_func.
6-
"""
5+
"""Test the correctness of dummy_func."""
76

87
assert dummy_func(3.2) == 3
8+
9+
10+
def test_another_dummy_func():
11+
"""Test the correctness of another_dummy_func."""
12+
13+
assert another_dummy_func(5) == 5.0

0 commit comments

Comments
 (0)