Skip to content

Latest commit

 

History

History
98 lines (73 loc) · 3.82 KB

CONTRIBUTING.md

File metadata and controls

98 lines (73 loc) · 3.82 KB

How to Contribute

Thank you for your interest in this project! Your feedback and invested time is greatly appreciated! If you found a bug or want to propose a new feature, please follow these steps.

Development setup

If you would like to propose a small change in a single file, you can also propose changes directly on Github without installing the project on your local machine first.

To start working on django-guest-user, you need:

  • Git. Git is the version control system tracking changes in the code used on GitHub.
  • Python installed on your system (at least version 3.8)
  • This package is built using Poetry, please install Poetry if you haven't already.
  • Code is formatted using Black, please install and run it before committing your changes.

After preparing the above dependencies, you are ready to open a terminal and run the following commands:

# Clone the repository to your machine
git clone [email protected]:julianwachholz/django-guest-user.git

# Switch to the directory and install the dependencies
cd django-guest-user
poetry install

# Check if setup is complete by running the test suite
poetry run pytest

If the pytest suite runs successfully, you are ready to start working on this project. If the tests fail but the current test status is passing, please let us know about it by filing an issue.

Documentation

The documentation is written in reStructured Text and can be found in the docs/ folder. The HTML version and other formats can be generated by running Sphinx, using the provided Makefile:

# Change to the docs directory
cd docs
# Generate the HTML documentation
poetry run make html
# Preview in the browser
cd _build/html
python -m http.server 5500
# Documentation available on http://localhost:5500/

Issues

You found a problem with django-guest-user? Please let the development team know about it by creating a new issue.

An issue can be anything from a typo in the documentation, a missing test case or an improvement suggestion.

If your issue is a technical bug, try to include details on how you encountered it and how it can be reproduced, using example code snippets from your project, when possible.

Improvements

Feature requests and suggestions are welcome! Create an issue for it, detailing your specific need and we will discuss how this package can help you achieve it.

Pull Requests

Please create a pull request if you made changes to the project that the community can also benefit from! Similar to issues, a pull request can be a single line of code fixing a typo somewhere in the documentation or a completely new feature.

If you can, try to write a test case for your changes. However tests are not required and you can also submit a pull request without test cases. Assistance can be provided if you are interested in writing tests; please let us know if this is the case.

Propose changes directly

The fastest way to create your first contribution is by editing files directly on GitHub, using the "Edit ✏️" button on the top right corner of a file. This will automatically create a fork of the project for you to commit changes to and propose changes back via a pull request.

Learn more about Pull Requests