Guide to Developers
Follow these steps to contribute to the project
-
Fork the repo located at
https://github.com/NREL/shift
-
Clone the forked repo in your local setup
git clone https://github.com/<YourUserName>/shift
-
Create the branch following naming convention
feature\<feature_name>
by executing the commandgit checkout -b feature\<feature-name>
-
If you need instructions to create the environment please refer to the Home page.
-
Make your changes
- Make sure to write tests in a proper file, create new file as necessary. Convention is to have single test file for each module.
-
Execute the test and make sure all of them pass.
cd <cloned_repo> pytest -p no:faulthandler
-
Make sure your code has passed linting test and black test. Use the following commands for checking linting and formatting.
pip install pylint cd <cloned_directory> pylint shift pip install black black --check --line-length 80 shift
-
Make sure you are following Googles docstring guidlines when documenting classes, methods, functions, modules and packages.
-
In order to update the documentation page please make your changes inside
docs/
folder and to view the changes run the following command.cd <cloned_repo> mkdocs serve