Contributing to django-machina¶
Here are some simple rules to help you contribute to django-machina. You can contribute in many ways!
The preferred way to contribute to django-machina is to submit pull requests to the project’s Github repository. Here are some general tips regarding pull requests.
Keep in mind that you should propose new features on the project’s issue tracker before starting working on your ideas! Remember that the central aim of django-machina is to provide a solid core of a forum project - without much of extra functionality included!
You should first fork the django-machina’s repository. Then you can get a working copy of the project using the following commands:
$ git clone firstname.lastname@example.org:<username>/django-machina.git $ cd django-machina && mkvirtualenv machina (machina) $ make install
Please make sure that your code is compliant with the PEP8 style guide. You can ignore the “Maximum Line Length” requirement but you should still pay attention to the length of your lines. Remember that your code will be checked using flake8. You can use the django-machina‘s tox configuration to perform this validation:
$ tox -e lint
You should not submit pull requests without providing tests. Django-machina uses pytest as a test runner but also as a syntax for tests instead of unittest. So you should write your tests using pytest instead of unittest and you should not use the built-in
You can run the whole test suite using the following command:
Code coverage should not decrease with pull request! You can easily get the code coverage of the project using the following command:
$ make coverage
The translation work on django-machina is done using Transifex. Don’t hesitate to apply for a lanaguage if you want to improve the internationalization of the project.