Skip to content

Commit

Permalink
🤖 Update dependencies (#43)
Browse files Browse the repository at this point in the history
* 🤖 Update dependencies

* Fixes docs lint errors

* Updates ruff lint config

* Try: pin requests-oauth2client<1.6

* Update test for new error message

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Harpo Harbert <[email protected]>
  • Loading branch information
github-actions[bot] and mrharpo authored Sep 18, 2024
1 parent 371042d commit b579761
Show file tree
Hide file tree
Showing 4 changed files with 1,302 additions and 1,148 deletions.
23 changes: 11 additions & 12 deletions docs/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"source": [
"import logging\n",
"\n",
"logging.getLogger(\"requests.packages.urllib3\").setLevel(logging.DEBUG)"
"logging.getLogger('requests.packages.urllib3').setLevel(logging.DEBUG)"
]
},
{
Expand Down Expand Up @@ -68,15 +68,16 @@
"metadata": {},
"outputs": [],
"source": [
"from ci_config import *\n",
"from sonyci import SonyCi, Config\n",
"import ci_config\n",
"\n",
"from sonyci import SonyCi\n",
"\n",
"ci = SonyCi(\n",
" username=username,\n",
" password=password,\n",
" client_id=client_id,\n",
" client_secret=client_secret,\n",
" workspace_id=workspace_id,\n",
" username=ci_config.username,\n",
" password=ci_config.password,\n",
" client_id=ci_config.client_id,\n",
" client_secret=ci_config.client_secret,\n",
" workspace_id=ci_config.workspace_id,\n",
")"
]
},
Expand Down Expand Up @@ -115,7 +116,6 @@
"source": [
"from requests_oauth2client.tokens import BearerTokenSerializer\n",
"\n",
"\n",
"with open('../.token') as f:\n",
" token = BearerTokenSerializer().loads(f.read())"
]
Expand All @@ -128,7 +128,6 @@
"source": [
"from sonyci.sonyci import SonyCi\n",
"\n",
"\n",
"ci = SonyCi(t=token)"
]
},
Expand Down Expand Up @@ -157,8 +156,8 @@
"metadata": {},
"outputs": [],
"source": [
"ci = SonyCi.load_from_toml(\"../ci.toml\")\n",
"ci(\"workspaces\")"
"ci = SonyCi.load_from_toml('../ci.toml')\n",
"ci('workspaces')"
]
}
],
Expand Down
Loading

0 comments on commit b579761

Please sign in to comment.