File tree Expand file tree Collapse file tree 4 files changed +37
-8
lines changed
demo-assignments/A0-OOP/hello Expand file tree Collapse file tree 4 files changed +37
-8
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ pip-log.txt
38
38
pip-delete-this-directory.txt
39
39
40
40
# Unit test / coverage reports
41
- htmlcov /
42
41
.tox /
43
42
.nox /
44
43
.coverage
@@ -127,4 +126,4 @@ dmypy.json
127
126
# Pyre type checker
128
127
.pyre /
129
128
.DS_Store
130
- htmlcov /
129
+ htmlcov /
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ run-test:
36
36
37
37
.PHONY : run-test-coverage
38
38
run-test-coverage :
39
- $(COVERAGE ) -v --cov-report=html: $( DEMO ) /A0/hello/htmlcov --cov-report= term --cov=$(DEMO ) /A0/hello $(DEMO ) /A0/hello/tests
40
- $(COVERAGE ) -v --cov-report=html: $( DEMO ) /A0-OOP/hello/htmlcov --cov-report= term --cov=$(DEMO ) /A0-OOP/hello $(DEMO ) /A0-OOP/hello/tests
41
- $(COVERAGE ) -v --cov-report=html: $( DEMO ) /A1/cold/htmlcov --cov-report= term --cov=$(DEMO ) /A1/cold $(DEMO ) /A1/cold/tests
42
- $(COVERAGE ) -v --cov-report=html: $( DEMO ) /A1-OOP/cold/htmlcov --cov-report= term --cov=$(DEMO ) /A1-OOP/cold $(DEMO ) /A1-OOP/cold/tests
43
- $(COVERAGE ) -v --cov-report=html: $( DEMO ) /A2-ABC/egypt/htmlcov --cov-report= term --cov=$(DEMO ) /A2-ABC/egypt $(DEMO ) /A2-ABC/egypt/tests
39
+ $(COVERAGE ) -v --cov-report=term-missing --cov=$(DEMO ) /A0/hello $(DEMO ) /A0/hello/tests
40
+ $(COVERAGE ) -v --cov-report=term-missing --cov=$(DEMO ) /A0-OOP/hello $(DEMO ) /A0-OOP/hello/tests
41
+ $(COVERAGE ) -v --cov-report=term-missing --cov=$(DEMO ) /A1/cold $(DEMO ) /A1/cold/tests
42
+ $(COVERAGE ) -v --cov-report=term-missing --cov=$(DEMO ) /A1-OOP/cold $(DEMO ) /A1-OOP/cold/tests
43
+ $(COVERAGE ) -v --cov-report=term-missing --cov=$(DEMO ) /A2-ABC/egypt $(DEMO ) /A2-ABC/egypt/tests
44
44
45
45
.PHONY : clean
46
46
clean :
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ run-test-coverage: create-doc-folder
29
29
pytest --verbose --color=yes --cov --cov-report term-missing --cov-report=html:$(DOCS ) /test-cov tests/
30
30
@echo " All unittests passed!"
31
31
32
-
33
32
.PHONY : check-types
34
33
check-types :
35
34
# use shell command which to check if mypy is installed and is in $PATH
@@ -46,6 +45,7 @@ create-doc-folder:
46
45
47
46
.PHONY : create-docs
48
47
create-docs : create-doc-folder
48
+ # provide each module name; current path . not working!
49
49
pdoc --output-dir $(DOCS ) /code-docs hello.py main.py # creates html docs
50
50
@echo " html docs created and saved in $( DOCS) /code-docs"
51
51
Original file line number Diff line number Diff line change
1
+ Module hello
2
+ ============
3
+ Hello World Program using OOP
4
+
5
+ Classes
6
+ -------
7
+
8
+ ` HelloWorld() `
9
+ : Hello World Class
10
+
11
+ Constructor
12
+
13
+ ### Instance variables
14
+
15
+ `message: str`
16
+ : Returns the message - using getter property
17
+
18
+ Returns:
19
+ self._message (str): Message stored in the object
20
+
21
+ ### Methods
22
+
23
+ `get_message(self) ‑> str`
24
+ : Returns the message - using getter method
25
+
26
+ Returns:
27
+ self._message (str): Message stored in the object
28
+
29
+ `print_message(self) ‑> None`
30
+ : Prints the message
You can’t perform that action at this time.
0 commit comments