Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions centml/cli/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import hashlib
from http.server import BaseHTTPRequestHandler, HTTPServer
import json
import os
import secrets
import urllib.parse
import webbrowser
Expand Down Expand Up @@ -122,6 +123,7 @@ def login(token_file):
cred = {
key: response_dict[key] for key in ("access_token", "refresh_token") if key in response_dict
}
os.makedirs(os.path.dirname(settings.CENTML_CRED_FILE_PATH), exist_ok=True)
with open(settings.CENTML_CRED_FILE_PATH, "w") as f:
json.dump(cred, f)
click.echo("✅ Login successful")
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e

# run pylint
python -m pylint --rcfile ./scripts/pylintrc -j $(nproc) ./centml ./tests
python -m pylint --rcfile ./scripts/pylintrc ./centml ./tests
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name='centml',
version='0.4.0',
version='0.4.1',
packages=find_packages(),
python_requires=">=3.10",
long_description=open('README.md').read(),
Expand Down
Loading