Skip to content

Latest commit

 

History

History
175 lines (110 loc) · 4.77 KB

CONTRIBUTING.rst

File metadata and controls

175 lines (110 loc) · 4.77 KB

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

You can contribute in many ways:

Types of Contributions

Report Bugs

Report bugs at https://github.com/snakypy/dotctrl/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your local setup that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.

Fix Bugs

Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.

Implement Features

Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.

Write Documentation

Dotctrl could always use more documentation, whether as part of the official Dotctrl docs, in docstrings, or even on the web in blog posts, articles, and such.

Submit Feedback

The best way to send feedback is to file an issue at https://github.com/dotctrl/dotctrl/issues.

If you are proposing a feature:

  • Explain in detail how it would work.
  • Keep the scope as narrow as possible, to make it easier to implement.
  • Remember that this is a volunteer-driven project, and that contributions are welcome :)

Get Started!

Ready to contribute? Here's how to set up dotctrl for local development.

  1. Fork the dotctrl repo on GitHub.

  2. Clone your fork locally:

    $ git clone [email protected]:your_name_here/dotctrl.git

3. Install your local copy on a virtualenv. Assuming you have poetry installed, this is how you set up your fork for local development:

$ cd dotctrl/ $ poetry shell $ poetry install
  1. Create a branch for local development:

    $ git checkout -b name-of-your-bugfix-or-feature

    Now you can make your changes locally.

5. When you're done making changes, check that your changes pass flake8, black and the tests:

$ poetry run tox
  1. Commit your changes and push your branch to GitHub:

    $ git add . $ git commit -m "Your detailed description of your changes." $ git push origin name-of-your-bugfix-or-feature

  2. Submit a pull request through the GitHub website.

Developing with Docker

The Dotctrl project contains Dockerfile, so you can see how the development is going using a Python image.

To do this, do:

1 - Build:

$ docker build -t dotctrl:<version> .

2 - Access Dotctrl container in mode interactive:

$ docker run --rm -it dotctrl:<version>

3 - Run the command to create the Dotctrl repository:

$ mkdir -p /tmp/Dotfiles; cd $_ && dotctrl init

Versioning

PyPI Publishing:

Different Python projects may use different versioning schemes based on the needs of that particular project, but all of them are required to comply with the flexible public version scheme specified in PEP 440 in order to be supported in tools and libraries like pip and setuptools.

Here are some examples of compliant version numbers:

1.2.0.dev1  # Development release
1.2.0a1     # Alpha Release
1.2.0b1     # Beta Release
1.2.0rc1    # Release Candidate
1.2.0       # Final Release
1.2.0.post1 # Post Release
15.10       # Date based release
23          # Serial release

Dotctrl uses semantic versioning, it is a 3-part MAJOR.MINOR.MAINTENANCE numbering scheme, where the project author increments:

The essence of semantic versioning is a 3-part MAJOR.MINOR.MAINTENANCE numbering scheme, where the project author increments:

  1. MAJOR version when they make incompatible API changes,

2. MINOR version when they add functionality in a backwards-compatible manner, and

  1. MAINTENANCE version when they make backwards-compatible bug fixes.

Adopting this approach as a project author allows users to make use of "compatible release" specifiers, where name ~= X.Y requires at least release X.Y, but also allows any later release with a matching MAJOR version.

Python projects adopting semantic versioning should abide by clauses 1-8 of the Semantic Versioning 2.0.0 specification.

For more information see: PyPI Publishing

Appear in credits

If you contribute over 100 lines of code to the project, your name and some of your data will appear in the Dotctrl credits when run the command:

$ dotctrl --credits

Not only that, but your name will also appear in AUTHORS.rst. How about, huh?