mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 01:10:45 +00:00
Auto-close auth browser window
This commit is contained in:
1 parent
acdcfcecf8
commit
73aac90bbe
5 files changed
+44
-17
No files matched your search
+19
-1
@@ -1,7 +1,9 @@
|
||||
## 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
|
||||
@@ -9,10 +11,26 @@ export SPOTIPY_CLIENT_USERNAME=client_username_here # This is actually an id not
|
||||
export SPOTIPY_REDIRECT_URI=http://localhost/ # Make url is set in app you created to get your ID and SECRET
|
||||
```
|
||||
|
||||
### Create virtual enevironment, install dependencies, run tests:
|
||||
### Create virtual environment, install dependencies, run tests:
|
||||
|
||||
```bash
|
||||
$ virtualenv --python=python3.7 env
|
||||
(env) $ pip install requirements.txt
|
||||
(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 .
|
||||
|
||||
### README
|
||||
|
||||
Don't forget to add a short description of your change in the [CHANGELOG](CHANGELOG.md)
|
||||
Reference in new issue
Block a user