Skip to content

Commit b70c474

Browse files
author
Axel Dahlberg
committed
Added the examples folder to the linter
1 parent eb4fd81 commit b70c474

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
PYTHON = python3
22
PIP = pip3
3-
CQC_DIR = cqc
3+
CQC_DIR = cqc
4+
EXAMPLES = examples
45

56
clean: _clear_pyc _clear_build
67

78
_clear_pyc:
89
@find . -name '*.pyc' -delete
910

1011
lint:
11-
@${PYTHON} -m flake8 ${CQC_DIR}
12+
@${PYTHON} -m flake8 ${CQC_DIR} ${EXAMPLES}
1213

1314
python-deps:
1415
@cat requirements.txt | xargs -n 1 -L 1 $(PIP) install

examples/pythonLib/coinflipLeader/nPartyCoinFlip.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ def main():
66
leaderChooser = CoinflipConsensus(arr) # Elects a leader from array that you declared
77
return leaderChooser.leader()
88

9+
910
# For 12-13-14-15 lines: After seeing "Add person" sentence, you can add person that how many person you want to add.
10-
# After adding one person you should press "enter" and then you can continue to add person with press enter
11-
# If you want to cancel from adding person you should press enter again
11+
# After adding one person you should press "enter" and then you can continue to add person with press enter
12+
# If you want to cancel from adding person you should press enter again
1213
# After enter the all name that you wanted to add you should press "enter"
13-
# Note that: you should use name from cqc's names space such as Alice, Bob, David, Eve Charlie.., you cant't use name randomly such as Gozde, Axel ...
14+
# Note that: you should use names configure in the network
1415
arr = [] # Here an empty array was defined
1516
veri = input("Add person")
1617
while veri:

0 commit comments

Comments
 (0)