Readme development dependencies
These instructions only need to be completed if you plan on developing new code for this project.
If developing on windows, see the Windows section below.
-
Use npm to install
grunt-clinpm install -g grunt-cli -
Install
numpy,scipy,obspy, andflake8if they aren't already installed. -
Clone this project (or fork and clone your fork)
git clone https://github.com/usgs/geomag-algorithms.git -
From root directory of project, install npm dependencies
npm install -
Run grunt to run unit tests, and watch for changes to python files
grunt
- Install the newest release of [Node (http://nodejs.org/download/)][] for Windows, using the Windows Installer (.msi).
- All of the defaults should be sufficient.
- Close and re-open your terminal so that your new PATH is loaded.
This project adheres to PEP8 standards in most cases: https://www.python.org/dev/peps/pep-0008
-
Hanging/Visual indents (E126, E127, E128, E131)
- line continuations should use two indentations (8 spaces).
- do not use visual indents.
-
ssh-keygen -t rsa -b 2048(in terminal) -
Press Enter to accept the default save location.
-
Enter a passphrase that you will remember.
-
cat ~/.ssh/id_rsa.pubCopy the text block that is displayed. This is your SSH key. If you're on Window and can't copy the text from the terminal, go toC:\Users\[your username here]\.sshand open theid_rsa.pubfile with notepad. -
In GitHub, click Edit Your Profile.
-
Select SSH Keys on the left.
-
Click Add SSH key. Give it a meaningful title.
-
Copy your SSH Key into the Key, and click Add key.