Hey, welcome to strategy onboarding! We're experimenting with a new onboarding setup, and always welcoming feedback.
This is intended as more of an introduction to Python, which is the primary language we use for strategy projects, and some libraries around it. If you're more familiar with Python, this might only take you a couple minutes.
Feel free to message Emma Wai on Slack with any questions.
There's a couple exercises:
- Fibonacci: Implement
fibonacci_term()
inonboarding/fibonacci.py
. Check your work by running unit tests. The unit test framework we are using ispytest
-> to run these, install the necessary packages (see below) and runpytest
in terminal/command line - Array: Implement
find_min_index()
andreverse_str_arr()
inonboarding/array.py
. This time, you'll have to write the test cases intest_array.py
- Matplot: We put together some very simple data in
test_data.csv
. Read it and graph it using Matplotlib
Once you're done, open a pull request (PR) with all these changes and tag @e-wai
for a review.
If you're waiting on a review, please take a look through the MSXIV work (https://github.com/uw-midsun/strategy) and come up with questions about what we've designed, or how we implemented certain things
-
Install python and git. Check that both exist on your computer with:
python --version git --version
-
Use command line/terminal to navigate your computer's file system.
cd <directory-name>
to go down a level to the directory, orcd ..
to go up a level. -
Clone the repo into the location you want using
git clone https://github.com/uw-midsun/strategy-onboarding.git
-
Using Python's virtualenv is a nice, easy way to manage installation packages: https://docs.python.org/3/library/venv.html. You'll need to install
pytest
. We have all the required packages stored in arequirements.txt
file, which becomes especially useful once there are more required packages:pip install -r requirements.txt
-
Check that the test suite works with:
pytest
If you want more information on pytest, see the docs