Ubuntu

Add type hints to a snapcraft module

Task description:

  • git clone git@github.com:snapcore/snapcraft.git
  • Read HACKING.md to setup a virtual environment for development and testing
  • Pick a python module or package within the snapcraft directory
  • Create a branch -> git checkout -b my-branch
  • Add python 3.5 type hinting support to https://docs.python.org/3/library/typing.html (as a minimal example you can look at elf.py)
  • from the root of the project ./runtests.sh static should pass
  • git add your module
  • git commit with an appropriate message as defined in CONTRIBUTING.md
  • push your branch to your repo
  • Create a pull request for review
  • Update with review comments

The task is considered done once it is merged into the master branch

Suggestions:

  • while this task could be done on any distribution or Linux OS variant, it will be more straightforward to do it on Ubuntu 16.04 LTS.

Task tags

  • python
  • snapcraft
  • typing

Students who completed this task

Daniel Lim, Konrad Krawiec, Marcin Mikołajczak, Ivan Fonseca

Task type

  • code Code
close

2017