Skip to content

Latest commit

 

History

History
83 lines (69 loc) · 3.06 KB

h01work.md

File metadata and controls

83 lines (69 loc) · 3.06 KB



 home :: syllabus :: timetable :: groups :: moodle :: chat :: © 2020


Howework: 1: Write a "good" Github Repo

Your repo is your resume. But what is a good looking repo?

Write a repo

With the structure shown below. Ensure that everyone in the group do at least one commit to the repo

Note:

  • There is a lot to do here in a week .
  • You'll probably only get bits of this going in 1 week. But keep at it. Remember that homeworks can be submitted many times with no penalties
  • Suggestion: Divide up the structure between your group and everyone do different parts. But make sure everyone knows what each part is.

Submit your a URL to your repo to Moodle.

Structure

.gitignore
.travis.yml
CITATION.md : fill on once you've got your ZENODO DOI going
CODE-OF-CONDUCT.md
CONTRIBUTING.md
LICENSE.md
README.md
setup.py
requirements.txt
data/
  README.md
test/
  README.md
code/
  __init__.py

If you don't know what any of the above do, then google them (they are quite standard). ALso, read the following:

Regarding the last point, keep it real simple. In Python, write the smallest example of pytest running a file containing some test_ functions.

# content of __init__.py
def inc(x):
    return x + 1

def test_answer():
    assert inc(3) == 5

Hook that code into Travis so that everytime you commit your repo, your tests re-run.