Skip to content

Latest commit

 

History

History
83 lines (61 loc) · 2.87 KB

CONTRIBUTING.md

File metadata and controls

83 lines (61 loc) · 2.87 KB

Contributing to galcheat

We appreciate that you want to contribute to galcheat. Your time is valuable, and your contribution means a lot.

Important!

By contributing to this project, you agree that the content you contribute may be provided under the project license, which means that the numbers you provide for a given survey are public or can be made public.

Getting started

What does "contributing" mean?

There are several ways to contribute, namely:

  • Feature requests or bug reports through issues
  • Add, update or correct information through pull-requests

Showing support for galcheat

Don't have time to contribute? No worries, here are some other ways to show your support for galcheat:

  • star the project (creates visibility)
  • mention it around

Issues

To create an issue, go to https://github.com/aboucaud/galcheat/issues/new, provide it with a meaningful title and a description, as well as labels if appropriate.

Pull-requests

To add, update or correct information, the first step is to setup a development environment for galcheat and then create feature branches for a given pull-request.

Note that you will have to fork the project to contribute.

Getting a development environment (do once)

  • Clone the project
    git clone https://github.com/aboucaud/galcheat
    cd galcheat
  • Setup the virtual environment with the dev tools
    python -m venv dev-venv
    source dev-venv/bin/activate
    python -m pip install -r requirements-dev.txt
  • Install the automated checks and code lint on git commits
    pre-commit install

Create a fork (do once)

Code in a feature branch

  1. Activate the development environment
    source dev-venv/bin/activate
  2. Create a feature branch (e.g. featbranch here)
    git checkout -b featbranch
  3. Commit your code into featbranch (sometimes the commit will be rejected because of the pre-commit checks, just add the files a second time and commit again).
  4. Make sure to integrate the latest changes by regularly incorporating the latest work of the main branch into yours
    git rebase origin/main
    and solve the conflicts, if any.
  5. Push your feature branch to your fork
    git push -u fork featbranch  # the first time to set the target remote
    git push                     # afterwards
  6. Create the pull-request and iterate from 3. until it is merged.