Skip to content

Latest commit

 

History

History
124 lines (79 loc) · 4.95 KB

CONTRIBUTING.md

File metadata and controls

124 lines (79 loc) · 4.95 KB

Contributing

Please follow the instructions below for contributing to lign. Contributions that do not follow the guidelines below may be removed or closed at the discretion of the reviewer.

Table of Contents

Getting Started

These are instructions for getting started with development. If only interested in the package, please install Lign via pip install lign, conda install lign -c josuecom -c pytorch or by downloading the package from github and saving it in the site-packages/ directory of your python interpreter.

For more details, please read the developer documentation

Installation

  1. Clone the repo

    git clone https://github.com/JosueCom/Lign.git
  2. Switch directory

    cd Lign
  3. Install prerequisites

    It is recommended to install PyTorch via the official site first for optimal performance

    pip install -r docs/dev/requirements.txt
    conda env create -f docs/dev/environment.yml -n lign
    conda activate lign
  4. Install package

    pip install . --upgrade

Making Changes

When contributing to the Lign, please make sure to follow these instruction and document any changes made.

  1. Fork the project

  2. Create your feature branch

    git checkout -b feature/amazing-feature
  3. Commit your changes + documentation

    git commit -m 'Add some AmazingFeature'
  4. Push to the branch

    git push origin feature/AmazingFeature
  5. Open a Pull Request

Documentation

If you contribute to lign, you must follow the following standards and document any changes made as described below. There are four types of documentations that may be made based on the extend of the contribution.

Pull Request

When contributing any changes, first document your code by following the convention under Docstring. After, create a pull request. Lastly, insert and fill the following template in the pull request description.

Create one pull request for each independent overall functionality. Do not include multiple unrelated functionalities into one request.

Template

Issue

When reporting an issue, use the discussion panel on GitHub to discuss it with the community first. If (1) no response is given after 24 hours or an inarticulate respond was given, (2) the issue is considered novel and (3) no duplicate issue(s) exist, feel free to submit a request by creating an issue with the following template. Additionally, insert [ISSUE] or [BUG] in the title of the GitHub Issue. Contributions that do not follow these guidelines may be removed or closed at the discretion of the reviewer.

Create one issue for each independent problem. Do not group multiple unrelated issues into one report.

Template

Feature Request

When requesting a feature, use the discussion panel on GitHub to discuss it with the community first. If (1) no response is given after 24 hours or an unsatisfactory respond is given, (2) the feature is considered benefitial and (3) no duplicate feature(s) exist, feel free to submit a request by creating an issue with the following template. Additionally, insert [FEATURE] or [IMPROVEMENT] in the title of the GitHub Issue. Contributions that do not follow these guidelines may be removed or closed at the discretion of the reviewer

Create one feature for each independent improvement. Do not group multiple unrelated features into one report

Template

Docstring

Any changes made to the source code (ling/) must be documented using Google style python docstrings. Refer to napoleon readthedocs for an example of Google style python docstrings.

Developer Docs

Feel free to read the developer documentation for more information about contributing to Lign.