Looking for a useful open source project to contribute to? Want your contributions to be warmly welcomed and acknowledged? Welcome! You have found the right place.
The first step when contributing to any project is getting it set up on your local machine. isort aims to make this as simple as possible.
Account Requirements:
Base System Requirements:
Once you have verified that your system matches the base requirements you can start to get the project working by following these steps:
git clone https://github.com/$GITHUB_ACCOUNT/isort.gitcd isortuv sync --all-extras --frozen./scripts/test.sh should yield Success: no issues found./scripts/clean.sh should yield a report checking packagesTIP: ./scripts/done.sh will run both clean and test in one step.
If you would instead like to develop using Docker, the only local requirement is docker. See the docker docs if you have not used docker before.
Once you have the docker daemon running and have cloned the repository, you can get started by following these steps:
cd isort./scripts/docker.shA local test cycle might look like the following:
docker build ./ -t isort:latestdocker run isortdocker run -it isort bash will get you into the failed environmentdocker run -v $(git rev-parse --show-toplevel):/isort will make changes made in the docker environment persist on your local checkout. TIP: combine both to get an interactive docker shell that loads changes made locally, even after build, to quickly rerun that pesky failing test./scripts/docker.sh--build-arg VERSION=$VERCongrats! You're now ready to make a contribution! Use the following as a guide to help you reach a successful pull-request:
git checkout -b issue/$ISSUE-NUMBER../scripts/done.sh Or if you are using Docker docker run isort:latestThanks for the contribution! It will quickly get reviewed, and, once accepted, will result in your name being added to the acknowledgments list :).
I can not tell you how thankful I am for the hard work done by isort contributors like you.
Thank you!
~Timothy Crosley