Skip to content

Latest commit

 

History

History
183 lines (130 loc) · 11.7 KB

CONTRIBUTING.md

File metadata and controls

183 lines (130 loc) · 11.7 KB

Contributor Guidelines

Faraday-Software is the software that interfaces the Faraday radio designed and manufactured by FaradayRF. We're excited you are considering helping out. We need it! FaradayRF was formed to provide the necessary hardware and software to enable the shift towards a data-centric amateur radio.

Data is the future of amateur radio and we believe it will be open

By contributing to this project you are helping an open source project. That means that while FaradayRF benefits from it, so does the amateur radio community as a whole. Everyone has access to the work, everyone can use it. We like that.

Essential Reading

You may wonder why we have made some of the decisions with the direction and functionality of this project. Our Master Plan outlines our goals clearly.

  1. Educate the Masses
  2. Build New Infrastructure
  3. Expand Spectrum Use

This points to why we may argue that Faraday software or hardware isn't designed to be competitive with high bandwidth WiFi or why we are not currently developing a mesh network. These items add complexity that do not help us accomplish these three goals.

Before Getting Started

Overview

How To Contribute

Style Guides

Overview

Code of Conduct

FaradayRF in interested in developing better technology and educational resources for ham radio. It's that simple. This means FaradayRF and all contributors pledge to foster a welcoming atmosphere for everyone. Participating with this project shall be harassment-free irrespective of nationality, age, body size, ethnicity, gender identity and expression, any disabilities, level of experience, personal appearance, race, religion, or sexual identity/orientation.

If you feel that you or someone participating in this project is being harassed please contact Support@FaradayRF.com.

Core Principles

Faraday-Software is being developed for the Faraday radio. However, this open source project also strives to push ham radio forward. Not just for FaradayRF but for everyone. Therefore we ask that all contributors take the following principles to heart:

  • Applications and supporting programs shall strive to be RESTful
  • Functionality of the software shall attempt to be agnostic of radio hardware design where appropriate
  • An API should be used to communicate between different applications and programs

Suggested Tools

Tools we find make developing for Faraday-Software better

  • Git - If you want to contribute you will need Git
  • PyCharm - Python IDE
  • PyScripter - Python IDE
  • Notepad++ - Free and powerful text editor
  • pep8 - PEP8 Python module
  • LICap - Easy to use GIF window capture

FaradayRF Slack Channel

We often use our slack channel to communicate in near real-time. It is also a place to meet other developers and FaradayRF owners. We can't make it open to signup for everyone due to Slack rules but send us an email at Support@FaradayRF.com asking for an invitation and we'd be happy to send the invite!

How To Contribute

Reporting a Bug

Following these simple guidelines will help the maintainers better understand your bug report. Not all guidelines may be applicable to a given situation, please use your best judgement.

  • Perform basic debugging
  • Are you using the latest version of the software?
  • Have you changed your configuration of both software or Faraday device from default? (if so please provide your configuration files on a Gist)
  • Are multiple programs running that may be interfering?
  • Use a clear and descriptive title
  • Describe the exact steps used to reproduce the bug
  • Describe the exact problem behavior you observed
  • Provide a demonstration if possible (Youtube, LICap GIF uploaded to ticket, etc)
  • Explain what behavior you expected to see and why
  • When in doubt provide as much information as possible!

Feature Requests

We love new ideas. If you think we should add functionality to the Faraday Software we want to hear about it. Please follow these guidelines as best as possible to help us understand your request. We cannot guarantee the feature will be implemented. In most cases the best way to get a feature into Faraday is to write the code and submit a Pull Request!

  • Use a clear and descriptive title
  • Provide a descriptive overview of the enhancements operation(s)
  • Provide a demonstration if possible (Youtube, LICap GIF uploaded to ticket, etc)
  • Explain why this is a useful enhancement to the community

Beginners Start Here

FaradayRF welcomes all help. Even if you've never made an open source contribution before or don't even know how to program. We've marked bugs and enhancements that you may be able to contribute to the project with.

  • Beginner Issues - Simple issues where the solution is likely a few lines of code or less
  • Help Wanted - More involved tasks that require some knowledge of programming and can help learn how Faraday software ticks
  • Documentation Updates - Clear and consistent documentation is key to building a knowledgeable and growing community

Pull Requests

  • Include a detailed description of the pull requests purpose
  • Provide a demonstration if possible (Youtube, LICap GIF uploaded to ticket, etc)
  • Follow our code Style Guide wherever possible
  • Avoid platform dependent code

Style Guides

Git

Branches

  • Choose short and descriptive branch names. i.e. issue100, aprslib
  • Reference issue tickets in commits where applicable
  • Delete your branch after it is merged unless there is reason not to

Commits

  • Commits should be atomic i.e. one commit per logical change. Do not combine logical changes with formatting changes.
  • Every commit should have a message associated with it describing the changes made
  • Commit messages should reference issue tickets i.e. "...issue #90..." and/or commit hashes where appropriate

Merges

  • Rebase branch to the branch it will be merged with to keep history simple and allow a fast-forward
  • Test code prior to merging

Writing

There are many instances where one might find themselves writing for Faraday-Software. Mostly this will be documentation or comments. This project aims to be as clear as possible. Therefore we suggest abiding by the following conventions or you might find yourself being asked to fix your pull request.

  • Spelling errors should be eliminated
  • Try to be as clear and concise as possible
  • Use one space after a period for new sentences
  • When referencing variables, functions, classes, or folders use code formatting

Documentation

Open source projects strive when they are documented well. This allows everyone to understand what is going on in the code and how to use it. Please follow the following conventions:

  • Use comments in sourcecode to explain a piece of code when the code does not speak for itself
  • When writing functions and classes always use Docstrings
  • Every program, application, or library should have an associated readme.md describing what the code is, how to install it, and how to use it.
  • If images are necessary, create an images folder within the project/application folder to hold them.

Configuration files

For any application that requires user specific configuration, add a sample configuration file with .sample added to the file name before the .ini. Use proxy as an example where proxy.py uses configuration from proxy.ini, but proxy.sample.ini is stored in git and proxy.ini is in .gitignore. The end user needs to create their own local copy of the configuration file that contains their information by editing the file and renaming it without the .sample.

Use the following format within configuration files:

  • Uppercase [SECTION] and NAME fields but values can be upper or lowercase [SECTION]
  • No spaces before or after = separating the NAME from the value NAME=value
  • Comments must be on their own line and cannot be inline comments ;this is a comment

Python

Most code on Faraday-Software is Python. We are adhering to the PEP8 style wherever possible. In most cases it is easy to abide but when cases arise that would be clearer to break PEP8 compliance we will consider this. Much of early Faraday-Software was written before PEP8 compliance was sought after and is therefore being updated over time. Please avoid combining PEP8 updates to old code with new commits unless you are updating the code that is being changed to PEP8. Separate formatting and logical commits per out Git style guide!

Naming Conventions

Faraday-Software started out with various naming schemes from its original developers. We are standardizing on PEP8 compliant naming schemes.

  • Function names should be lowercase, with words separated by underscores as necessary to improve readability
  • Variables should also be lowercase and only deviating to improve readability
  • Class Names should use CapWords convention
  • Package and module names should use all lowercase names unless necessary then use underscores
  • Constants should be all UPPERCASE

JavaScript

Javascript is often used for display functionality such as GUI interfaces or RESTful responses that return an HTML file. Please make an attempt to follow the jQuery JavaScript Style Guide.

HTML

Like JavaScript HTML is often used for displaying information and as a response for RESTful requests that return an HTML file. Please make an attempt to follow the jQuery HTML Style Guide

C

If C is used for Faraday-Software please follow the GNU Coding Standards as best as possible.