Skip to content

Latest commit

 

History

History
86 lines (72 loc) · 4.32 KB

CONTRIBUTING.md

File metadata and controls

86 lines (72 loc) · 4.32 KB

Contribute to Unknown Horizons!

We have lots of opportunities besides hacking code: Check our page on how to [Get Involved] (http://www.unknown-horizons.org/get-involved/)!

File a bug report

  • Browse the [existing tickets] (https://github.com/unknown-horizons/unknown-horizons/issues): Maybe someone reported the bug already.
  • If there is a ticket, add a comment with additional information if you think it helps us spot the problem.
  • If there is no ticket covering your problem, please create one following some simple rules:
    1. Short and meaningful headline. [Example] (unknown-horizons#1627)
    2. Describe what is wrong or missing. How did you realize that? Include a step by step description so we can try to reproduce the problem. If something does not behave like you expected, please also tell us what you expected to happen. [Example] (unknown-horizons#1845)
    3. Logs, Savegames, screenshots and/or videos help a lot for understanding what is going on. Use the [awesome uploader] (http://up.unknown-horizons.org/) (login via github account) and link the additional files in your ticket.
    4. Tell us which version of Unknown Horizons and operating system do you use.

Checklist for contributing code

Coding style

We closely follow [PEP-8] (http://www.python.org/dev/peps/pep-0008/). Things that are handled differently:

Pull requests

Commit in small, logical sections instead of assembling one huge patch. Use the power of pull requests :)

The commit messages in your pull request should follow these common guidelines:

  • First line is a short summary, followed by a blank line and a more detailed description
  • If you are referring to a bug in our tracker, the short summary should should contain that issue number: #1322
  • Remember to explain why you do something and why you chose a certain way of doing it!
  • Wrap the commit message at 72 chars per line. If your summary is longer than that, it is no summary!

More resources

IRC

Our developers are available on IRC for all your questions: #unknown-horizons @ irc.freenode.net or via webchat.

In-code tutorial

We wrote an in-code tutorial to give you a code architecture overview before you start coding on Unknown Horizons. You find the first tutorial in [run_uh.py] (run_uh.py). Starting there, just follow the instruction comments (and ask us if something is unclear or outdated!).

Epydoc

We are pretty good at standing our ground against documentation, but here you go: [Epydoc] (http://epydoc.unknown-horizons.org/). We recommend you check the in-code tutorial first however :)

A better example is [FIFE epydoc] (http://www.fifengine.net/epydoc) which helps understanding the engine glue.

Tests

Github help