👍🎉 First off, thanks for taking the time to contribute! 🎉👍
We'd love your contributions to iCloud Drive Sync. You don't have to know how to code to be able to help!
Please review the following guidelines before contributing. Also, feel free to propose changes to these guidelines by updating this file and submitting a pull request.
- Feature requests
- Bug reports
- Discuss with the team
- Your first code contribution
- Pull request process
Setting up the development environment
Please note we have a Code of Conduct, please follow it in all your interactions with the project.
There are several ways to help this project. Let us know about missing features, or report errors. You could even help others by responding to questions about using the project in the [issue tracker on GitHub][issues-section].
We're always looking for suggestions to improve our application. If you have a suggestion to improve an existing feature, or would like to suggest a completely new feature, please use the [issue tracker on GitHub][issues-section].
Our software isn't always perfect, but we strive to always improve our work. You may file bug reports in the issue tracker.
Before submitting a bug report, check if the problem has already been reported. Please refrain from opening a duplicate issue. If you want to add further information to an existing issue, simply add a comment on that issue.
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Unsure where to begin contributing to this project? You can start by looking through these good first issue
and help-wanted
issues:
- Good first issues – issues which should only require a few lines of code, and a test or two.
- 'Help wanted' issues – issues which should be a bit more involved than
beginner
issues.
Both issue lists are sorted by total number of comments. While not perfect, looking at the number of comments on an issue can give a general idea of how much an impact a given change will have.
There are some requirements for pull requests:
- All bugfixes should be covered (before/after scenario) with a corresponding
unit test, refer to How to write a unit test All other tests pass. Run
./scripts/test
- 100% test coverage also for new features is expected.
- After running
./scripts/test
, you will see the test coverage results in the output - You can also open the HTML report at:
./htmlcov/index.html
- After running
- Code is formatted with autopep8. Run
./scripts/format
- No pylint errors. Run
./scripts/lint
(orpylint icloudds
) - If you've added or changed any command-line options, please update the Usage section in the README.md.
- Make sure your change is documented in the Unreleased section in the CHANGELOG.md.
- We aim to push out a Release once a week (Fridays), if there is at least one new change in CHANGELOG.
If you need to make any changes to the pyicloud
library,
icloudds
uses a fork of this library that has been renamed to pyicloud-ipd
.
Please clone my pyicloud fork
fork.
Install dependencies:
sudo pip install -r requirements.txt
sudo pip install -r requirements-test.txt
Run tests:
pytest
git clone https://github.com/gordonaspin/icloud_drive_sync.git
cd icloud_drive_sync
docker build -t icloudds/icloudds .