Contributions are welcome and much appreciated!
To setup ConferenceScheduler for local development:
Fork the repository on Github https://github.com/https://github.com/PyconUK/ConferenceScheduler/fork
Clone your fork to your local machine:
git clone [email protected]:your_name_here/ConferenceScheduler.git
Create a branch for your work:
git checkout -b name-of-your-branch
Commit your changes and push your branch to Github
Create a Pull Request at https://github.com/PyconUK/ConferenceScheduler/pulls
ConferenceScheduler includes a comprehensive test suite. Please ensure that you run all the tests before submitting a Pull Request.
To setup your environment for testing:
Install the necessary Python libraries:
pip install -r requirements.txt
Run the test suite:
python setup.py test
This basic setup will run the tests within the tests directory, but there is also the possibility to run the code contained with the documentation to ensure it still works and also to check the whole codebase for syntax and formatting problems. To do so, create a file named pytest.ini at the root of your local project folder and enter the following content:
[pytest] testpaths = tests docs python_files = test_*.py *_test.py tests.py pep8ignore = resources.py E701 addopts = --pep8 --doctest-glob='*.rst'
Now, when you run python setup.py test it will also run the doctests and pep8 checks.