Skip to content

Commit c54e886

Browse files
beaucarnesShMcK
authored andcommitted
INIT setup
0 parents  commit c54e886

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

coderoad/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
init:
2+
pip install -r requirements.txt
3+
4+
test:
5+
python tests

coderoad/pyvenv.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
home = /usr/local/bin
2+
include-system-site-packages = false
3+
version = 3.7.7

coderoad/requirements.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
astroid==2.4.2
2+
isort==4.3.21
3+
lazy-object-proxy==1.4.3
4+
mccabe==0.6.1
5+
pylint==2.5.3
6+
six==1.15.0
7+
tap.py==3.0
8+
toml==0.10.1
9+
typed-ast==1.4.1
10+
wrapt==1.12.1

coderoad/src/example.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Solution
2+
def add(*args):
3+
'''Add 1 or more numbers together'''
4+
sum = 0
5+
for arg in args:
6+
sum += arg
7+
return sum
8+
9+
def main():
10+
print('hello')
11+
print(str(add(1)))
12+
print(str(add(1, 2)))
13+
print(str(add(1, 2, 3)))
14+
15+
if __name__ == '__main__':
16+
main()

0 commit comments

Comments
 (0)