To make sure we properly evaluate your programming ability, we strongly encourage you to bring your own laptop which is set up with a toolchain that you are familiar with. In case this is not possible, Databricks can provide an MacBook laptop set up with PyCharm, iTerm2, zsh, and other standard tools.
These should be installed / created before starting the question.
This task will be done in Python. You do not need to be fully fluent with enterprise production Python, but you should be comfortable with general syntax and patterns e.g. try/except.
It will be helpful to have your IDE of choice set up with syntax highlighting for Python.
- Make sure you have Python 2.7 installed. To check run
python --version
. - Install Virtualenv. You should be able to get it with
pip install virtualenv
- Install + configure git locally: https://help.github.com/articles/set-up-git/
- Set up the development environment for flask.
git clone https://github.com/pallets/flask.git
cd flask
- Create a virtualenv with
virtualenv env
. - Activate the virtualenv with
source env/bin/activate
. - Install the pinned dependencies included at
requirements.txt
in this repository by runningpip install -r requirements.txt
- Install the flask development dependencies
pip install -e ".[dev]"
- Make sure your IDE is set up to navigate and make code changes to the flask repository.
- Familiarize yourself with flask. A great way is to read through the "A Minimal Application" and "Routing" sections of http://flask.pocoo.org/docs/1.0/quickstart/. A deep understanding of Flask will not be necessary for completing this task, and you will be able to reference the documentation, so there is no need to memorize anything.