Skip to content

Commit 2cdc65d

Browse files
committed
Also run black on examples folder
1 parent ea2d320 commit 2cdc65d

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

compile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515

1616
"""Compile stage. Run after cursor change to ensure quality."""
1717

18-
import subprocess
19-
2018
import os
19+
import subprocess
2120

2221
os.environ["FAST_TESTS"] = "TRUE"
2322

@@ -44,5 +43,5 @@
4443

4544
# Everything is good. Cleanup. This should never fail...
4645
print("Formatting code and documentation...")
47-
subprocess.run(r"black *.py pyimgur tests", shell=True, check=True)
46+
subprocess.run(r"black *.py examples pyimgur tests", shell=True, check=True)
4847
subprocess.run(r"prettier --write README.md", shell=True, check=True)

refresh_token.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def get_refresh_token():
4444
print("client_secret in it.")
4545

4646
else:
47-
from authentication import client_id, client_secret
47+
from authentication import ( # pylint: disable=import-error
48+
client_id,
49+
client_secret,
50+
)
4851

4952
get_refresh_token()

0 commit comments

Comments
 (0)