Skip to content

Latest commit

 

History

History
90 lines (57 loc) · 3.43 KB

CONTRIBUTING.md

File metadata and controls

90 lines (57 loc) · 3.43 KB

Jazzband

This is a Jazzband project. By contributing you agree to abide by the Contributor Code of Conduct and follow the guidelines.

Contributing

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

Dependencies

We use poetry to manage the dependencies.

To install them you would need to run install command:

poetry install

To activate your virtualenv run poetry shell.

Configuration

Set EAV2_PRIMARY_KEY_FIELD value to django.db.models.UUIDField or django.db.models.BigAutoField in your settings.

EAV2_PRIMARY_KEY_FIELD = "django.db.models.UUIDField" # as example

and run

python manage.py makemigrations
python manage.py migrate

Tests

We use pytest and flake8 for quality control.

To run all tests:

pytest

Cleanup

At the end of the test, ensure that you delete the migration file created by the EAV2_PRIMARY_KEY_FIELD change. Additionally, verify that the migration files are clean and reset the value to django.db.models.CharField in your settings.

EAV2_PRIMARY_KEY_FIELD = "django.db.models.CharField"

We develop with Github

We use github to host code, to track issues and feature requests, as well as accept pull requests.

We use Github Flow, so all code changes from community happen through pull requests

Pull requests are the best way to propose changes to the codebase (we use Github Flow). We actively welcome your pull requests:

  1. Fork the repo and create your branch from master.
  2. If you've added code that should be tested, add tests.
  3. If you've changed APIs, update the documentation.
  4. Ensure the test suite passes.
  5. Make sure your code lints.
  6. Describe the pull request using this template.

Any contributions you make will be under the GNU Lesser General Public License v3.0

In short, when you submit code changes, your submissions are understood to be under the same LGPLv3 that covers the project. Feel free to contact the maintainers if that's a concern.

Report bugs using Github's issues

We use GitHub issues to track public bugs. Report a bug by opening a new issue. Use this template to describe your reports.

Use a consistent coding style

We use Black and (working towards) wemake-python-styleguide for code and Google-style reStructuredText for doc-strings.




This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md).