Skip to content

Commit b92b965

Browse files
committed
Beautify + update version number
1 parent 8be9552 commit b92b965

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

analytix/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
)
4646

4747
__productname__ = "analytix"
48-
__version__ = "4.0.0a"
48+
__version__ = "4.0.0rc1"
4949
__description__ = "A simple yet powerful wrapper for the YouTube Analytics API."
5050
__url__ = "https://github.com/parafoxia/analytix"
5151
__docs__ = "https://analytix.readthedocs.io"

analytix/client.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ def _retrieve_tokens(self) -> Tokens:
183183
rd_addr = f"{rd_url}:{self._ws_port}"
184184

185185
url, _ = oauth.auth_url_and_state(self.secrets, rd_addr)
186-
print(f"\33[38;5;45mYou need to authorise analytix. To do so, visit this URL:\33[0m \33[4m{url}\33[0m")
186+
print(
187+
"\33[38;5;45mYou need to authorise analytix. "
188+
f"To do so, visit this URL:\33[0m \33[4m{url}\33[0m"
189+
)
187190

188191
ws = Server(rd_url[7:], self._ws_port)
189192
try:
@@ -245,7 +248,8 @@ def needs_token_refresh(self) -> bool:
245248
Whether the refresh tokens need to be refreshed.
246249
247250
!!! note
248-
If the client is authorised, this will always return `False`.
251+
If the client is authorised, this will always return
252+
`False`.
249253
"""
250254

251255
if not self._tokens:
@@ -371,7 +375,7 @@ def retrieve_report(
371375
Raises
372376
------
373377
APIError
374-
An error occured when retrieving the report.
378+
An error occurred when retrieving the report.
375379
376380
!!! warning
377381
If `end_date` is set to (or near to) the current date, some
@@ -478,7 +482,7 @@ def fetch_groups(
478482
Raises
479483
------
480484
APIError
481-
An error occured when retrieving the report.
485+
An error occurred when retrieving the report.
482486
483487
!!! note
484488
A next page token is always included irrespective of how
@@ -541,7 +545,7 @@ def fetch_group_items(
541545
Raises
542546
------
543547
APIError
544-
An error occured when retrieving the report.
548+
An error occurred when retrieving the report.
545549
546550
Examples
547551
--------

analytix/reports/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878

7979
from analytix import errors
8080
from analytix.abc import DetailedReportType, ReportType
81+
from analytix.reports import data
8182
from analytix.reports.features import (
8283
Dimensions,
8384
ExactlyOne,
@@ -90,7 +91,6 @@
9091
ZeroOrMore,
9192
ZeroOrOne,
9293
)
93-
from analytix.reports import data
9494

9595

9696
class BasicUserActivity(ReportType):

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def licensing(session: nox.Session) -> None:
149149
@nox.session(reuse_venv=True)
150150
def spelling(session: nox.Session) -> None:
151151
session.install(*fetch_installs("Spelling"))
152-
session.run("codespell", *CHECK_PATHS, "-S", "**/analytix/data*")
152+
session.run("codespell", *CHECK_PATHS, "-S", "**/analytix/reports/data*")
153153

154154

155155
@nox.session(reuse_venv=True)

0 commit comments

Comments
 (0)