Closed Hefadog2 closed 3 years ago
added to repo
poetry run black .
runs black in the current directory, hits test as well as src
poetry run black --diff .
shows differences, used w/ github actions
--- tests/test_dataacquisition.py 2021-11-11 23:48:20.828224 +0000
+++ tests/test_dataacquisition.py 2021-11-16 23:09:55.798350 +0000
@@ -1,5 +1,5 @@
from dataacquisition import __version__
def test_version():
- assert __version__ == '0.1.0'
+ assert __version__ == "0.1.0"
would reformat tests/test_dataacquisition.py
--- dataacquisition/acquisition.py 2021-11-16 23:05:54.488614 +0000
+++ dataacquisition/acquisition.py 2021-11-16 23:09:55.867897 +0000
@@ -8,11 +8,11 @@
from spotipy.oauth2 import SpotifyOAuth
from pprint import pprint
from time import sleep
# setting up authorization
-cid = ''
+cid = ""
secret = ""
username = "your_account_number"
scope = "user-library-read,user-read-playback-state,user-modify-playback-state" # check the documentation
authorization_url = "https://accounts.spotify.com/authorize"
would reformat dataacquisition/acquisition.py
All done! ✨ 🍰 ✨
2 files would be reformatted, 2 files would be left unchanged.
example, will make commit regarding solving issues black has brought up
black is a code formater for py add as dev dependancy