spotipy/CONTRIBUTING.md
Stéphane Bruckert c927f02c1c
Bump to 2.14.0 (#565)
* Add missing changelog entries

* Mark search_markets as experimental

* Bump to 2.14.0

* Improve FAQ, closes #522

* Remove non-beginner friendly exports from README, closes #521
2020-08-29 13:00:49 +01:00

37 lines
926 B
Markdown

## Contributing
If you would like to contribute to spotipy follow these steps:
### Export the needed environment variables
```bash
export SPOTIPY_CLIENT_ID=client_id_here
export SPOTIPY_CLIENT_SECRET=client_secret_here
export SPOTIPY_CLIENT_USERNAME=client_username_here # This is actually an id not spotify display name
export SPOTIPY_REDIRECT_URI=http://localhost:8080 # Make url is set in app you created to get your ID and SECRET
```
### Create virtual environment, install dependencies, run tests:
```bash
$ virtualenv --python=python3.7 env
(env) $ pip install --user -e .
(env) $ python -m unittest discover -v tests
```
### Lint
To automatically fix the code style:
pip install autopep8
autopep8 --in-place --aggressive --recursive .
To verify the code style:
pip install flake8
flake8 .
### Changelog
Don't forget to add a short description of your change in the [CHANGELOG](CHANGELOG.md)