Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.17 KB

CONTRIBUTING.md

File metadata and controls

58 lines (37 loc) · 1.17 KB

Setup

  1. In order to contribute you will need to clone/fork the repo and install the test requirements locally.
pip install -r test_requirements.txt
pip install -r doc_requirements.txt
  1. Install pre-commit.
pip install pre-commit
pre-commit install

Workflow

  1. Create and checkout new feature branch for your work.

  2. Make changes, add awesome code!

  3. Build docs locally and inspect the new html pages in docs/ folder.

cd docs_source
python make.py --local --smv_branch_whitelist <your_current_branch_name>

Open docs/index.html and see if the docs are rendered correctly.

  1. Stage docs
git add docs
  1. Run code-style requirement checks using pre-commit.
pre-commit run --all-files -v

Fix all documentation and typing issues shown in the output.

  1. Run tests locally.
./.run_local_tests.sh
  1. Git re-stage the files after fixing the errors and commit. When you commit, pre-commit will run once again but only on the changed files

  2. Push to remote. Create a PR if your feature is completed.

Code Styling

We use flake8 and black for code formatting and darglint for checking doc-strings.