This page details the some of the guidelines that should be followed when contributing to this package.
release-* branches are used for tagged minor versions of this package. This follows the same approach used in the main Julia repository, albeit on a much more modest scale.
Please open pull requests against the
master branch rather than any of the
release-* branches whenever possible.
Bug fixes are backported to the
release-* branches using
git cherry-pick -x by a JuliaDocs member and will become available in point releases of that particular minor version of the package.
Feel free to nominate commits that should be backported by opening an issue. Requests for new point releases to be tagged in
METADATA.jl can also be made in the same way.
- Each new minor version
x.y.0gets a branch called
release-x.y(a protected branch).
- New versions are usually tagged only from the
- For patch releases, changes get backported to the
release-x.ybranch via a single PR with the standard name "Backports for x.y.z" and label "Type: Backport". The PR message links to all the PRs that are providing commits to the backport. The PR gets merged as a merge commit (i.e. not squashed).
- The old
release-*branches may be removed once they have outlived their usefulness.
- Patch version milestones are used to keep track of which PRs get backported etc.
Follow the style of the surrounding text when making changes. When adding new features please try to stick to the following points whenever applicable.
- 4-space indentation;
- modules spanning entire files should not be indented, but modules that have surrounding code should;
- no blank lines at the start or end of files;
- do not manually align syntax such as
::over adjacent lines;
function ... endwhen a method definition contains more than one toplevel expression;
- related short-form method definitions don't need a new line between them;
- unrelated or long-form method definitions must have a blank line separating each one;
- surround all binary operators with whitespace except for
- files containing a single
module ... endmust be named after the module;
- method arguments should be ordered based on the amount of usage within the method body;
- methods extended from other modules must follow their inherited argument order, not the above rule;
returnshould be preferred except in short-form method definitions;
- avoid dense expressions where possible e.g. prefer nested
ifs over complex nested
- include a trailing
,in vectors, tuples, or method calls that span several lines;
- do not use multiline comments (
- wrap long lines as near to 92 characters as possible, this includes docstrings;
- follow the standard naming conventions used in
- Use unbalanced
#headers, i.e. no
#on the right hand side of the header text;
- include a single blank line between toplevel blocks;
- unordered lists must use
*bullets with two preceding spaces;
- do not hard wrap lines;
- use emphasis (
*) and bold (
- always use fenced code blocks instead of indented blocks;
- follow the conventions outlined in the Julia documentation page on documentation.