This information and more can be found in the contributing document inside each project. Remember to always work on a branch and create a merge request after pushing.
Get Started!
Ready to contribute? Here's how to set up project
for local development. (Replace project
with the name of the passoft project you are working on)
-
Clone the
project
repo:$ git clone https://git.passcal.nmt.edu/passoft/project.git
-
Install your local copy (After env setup and active!!!)
$ pip install -e .[dev]
-
Create a branch for local development:
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
-
When you're done making changes, check that your changes pass the tests:
$ python setup.py test
-
Commit your changes and push your branch to Gitlab:
$ git add . $ git commit -m "Your detailed description of your changes." $ git push origin name-of-your-bugfix-or-feature
-
Submit a merge request through the Gitlab website.
Pull Request Guidelines
Before you submit a merge request, check that it meets these guidelines:
- The merge request should include tests.
- If the merge request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst.
- The merge request should work for Python 2.7
Tips
To run a subset of tests::
$ python -m unittest tests.test_bline