Skip to content

Commit

Permalink
fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-chs committed Nov 7, 2023
1 parent 353492c commit 6274498
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 26 deletions.
3 changes: 2 additions & 1 deletion convoviz/data_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from collections import defaultdict
from datetime import datetime, timezone
from typing import TYPE_CHECKING, Unpack
from typing import TYPE_CHECKING

from matplotlib.figure import Figure
from nltk import download as nltk_download # type: ignore[import-untyped]
Expand All @@ -21,6 +21,7 @@

if TYPE_CHECKING:
from PIL.Image import Image
from typing_extensions import Unpack

from .utils import GraphKwargs, WordCloudKwargs

Expand Down
4 changes: 3 additions & 1 deletion convoviz/long_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
from __future__ import annotations

from pathlib import Path
from typing import TYPE_CHECKING, Unpack
from typing import TYPE_CHECKING

from tqdm import tqdm

if TYPE_CHECKING:
from typing_extensions import Unpack

from .models import ConversationSet
from .utils import GraphKwargs, WordCloudKwargs

Expand Down
3 changes: 2 additions & 1 deletion convoviz/models/_conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from datetime import datetime, timedelta
from os import utime as os_utime
from pathlib import Path
from typing import TYPE_CHECKING, Any, ClassVar, Unpack
from typing import TYPE_CHECKING, Any, ClassVar

from orjson import loads
from pydantic import BaseModel
Expand All @@ -27,6 +27,7 @@

if TYPE_CHECKING:
from PIL.Image import Image
from typing_extensions import Unpack

from ._message import AuthorRole

Expand Down
3 changes: 2 additions & 1 deletion convoviz/models/_conversation_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from __future__ import annotations

from pathlib import Path
from typing import TYPE_CHECKING, Any, Unpack
from typing import TYPE_CHECKING, Any

from orjson import OPT_INDENT_2, dumps, loads
from pydantic import BaseModel
Expand All @@ -22,6 +22,7 @@

from matplotlib.figure import Figure
from PIL.Image import Image
from typing_extensions import Unpack

from convoviz.utils import GraphKwargs, WordCloudKwargs

Expand Down
44 changes: 22 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
[tool.ruff]
select = ["ALL"]
ignore = [
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"TD002", # missing-todo-author
"TD003", # missing-todo-link
]
extend-include = ["*.ipynb"]

[tool.ruff.per-file-ignores]
"convoviz/cli.py" = ["T201"] # print
"*.ipynb" = ["T201"] # print
"tests/*" = ["S101", "SLF001"] # assert , private-member-access


[tool.mypy]
strict = true
enable_incomplete_feature = ["Unpack"]


[tool.poetry]
name = "convoviz"
version = "0.1.6"
version = "0.1.7"
description = "Get analytics and visualizations on your ChatGPT data !"
authors = ["Mohamed Cheikh Sidiya <mohamedcheikhsidiya77@gmail.com>"]
license = "MIT"
Expand Down Expand Up @@ -58,3 +37,24 @@ mypy = "^1.6.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


[tool.ruff]
select = ["ALL"]
ignore = [
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"TD002", # missing-todo-author
"TD003", # missing-todo-link
]
extend-include = ["*.ipynb"]

[tool.ruff.per-file-ignores]
"convoviz/cli.py" = ["T201"] # print
"*.ipynb" = ["T201"] # print
"tests/*" = ["S101", "SLF001"] # assert , private-member-access


[tool.mypy]
strict = true
enable_incomplete_feature = ["Unpack"]

0 comments on commit 6274498

Please sign in to comment.