Habiticalib 0.3.1__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {habiticalib-0.3.1 → habiticalib-0.3.2}/.pre-commit-config.yaml +2 -2
  2. {habiticalib-0.3.1 → habiticalib-0.3.2}/PKG-INFO +3 -2
  3. {habiticalib-0.3.1 → habiticalib-0.3.2}/pyproject.toml +7 -7
  4. {habiticalib-0.3.1 → habiticalib-0.3.2}/src/habiticalib/const.py +1 -1
  5. {habiticalib-0.3.1 → habiticalib-0.3.2}/src/habiticalib/types.py +11 -2
  6. {habiticalib-0.3.1 → habiticalib-0.3.2}/.cruft.json +0 -0
  7. {habiticalib-0.3.1 → habiticalib-0.3.2}/.editorconfig +0 -0
  8. {habiticalib-0.3.1 → habiticalib-0.3.2}/.github/FUNDING.yml +0 -0
  9. {habiticalib-0.3.1 → habiticalib-0.3.2}/.github/dependabot.yml +0 -0
  10. {habiticalib-0.3.1 → habiticalib-0.3.2}/.github/labels.yml +0 -0
  11. {habiticalib-0.3.1 → habiticalib-0.3.2}/.github/release-drafter.yml +0 -0
  12. {habiticalib-0.3.1 → habiticalib-0.3.2}/.github/workflows/build.yml +0 -0
  13. {habiticalib-0.3.1 → habiticalib-0.3.2}/.github/workflows/documentation.yml +0 -0
  14. {habiticalib-0.3.1 → habiticalib-0.3.2}/.github/workflows/draft.yml +0 -0
  15. {habiticalib-0.3.1 → habiticalib-0.3.2}/.github/workflows/labeler.yml +0 -0
  16. {habiticalib-0.3.1 → habiticalib-0.3.2}/.gitignore +0 -0
  17. {habiticalib-0.3.1 → habiticalib-0.3.2}/.vscode/settings.json +0 -0
  18. {habiticalib-0.3.1 → habiticalib-0.3.2}/LICENSE +0 -0
  19. {habiticalib-0.3.1 → habiticalib-0.3.2}/README.md +0 -0
  20. {habiticalib-0.3.1 → habiticalib-0.3.2}/docs/index.md +0 -0
  21. {habiticalib-0.3.1 → habiticalib-0.3.2}/docs/reference/habiticalib.md +0 -0
  22. {habiticalib-0.3.1 → habiticalib-0.3.2}/mkdocs.yml +0 -0
  23. {habiticalib-0.3.1 → habiticalib-0.3.2}/src/habiticalib/__init__.py +0 -0
  24. {habiticalib-0.3.1 → habiticalib-0.3.2}/src/habiticalib/exceptions.py +0 -0
  25. {habiticalib-0.3.1 → habiticalib-0.3.2}/src/habiticalib/helpers.py +0 -0
  26. {habiticalib-0.3.1 → habiticalib-0.3.2}/src/habiticalib/lib.py +0 -0
  27. {habiticalib-0.3.1 → habiticalib-0.3.2}/src/habiticalib/py.typed +0 -0
  28. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/__init__.py +0 -0
  29. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/__snapshots__/test_avatar.ambr +0 -0
  30. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/__snapshots__/test_lib.ambr +0 -0
  31. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/conftest.py +0 -0
  32. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/login.json +0 -0
  33. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user.json +0 -0
  34. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user_styles.json +0 -0
  35. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user_styles_kickstarter.json +0 -0
  36. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user_styles_seafoam.json +0 -0
  37. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user_styles_shinySeed.json +0 -0
  38. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user_styles_sleeping.json +0 -0
  39. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user_styles_snowball.json +0 -0
  40. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user_styles_spookySparkles.json +0 -0
  41. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/fixtures/user_styles_with_chair.json +0 -0
  42. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/test_avatar.py +0 -0
  43. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/test_init.py +0 -0
  44. {habiticalib-0.3.1 → habiticalib-0.3.2}/tests/test_lib.py +0 -0
@@ -20,14 +20,14 @@ repos:
20
20
 
21
21
  # Ruff replaces black, flake8, autoflake, isort and more
22
22
  - repo: https://github.com/charliermarsh/ruff-pre-commit
23
- rev: 'v0.7.0' # make sure this is always consistent with hatch configs
23
+ rev: 'v0.8.4' # make sure this is always consistent with hatch configs
24
24
  hooks:
25
25
  - id: ruff
26
26
  - id: ruff-format
27
27
  args: [--check, --config, ./pyproject.toml]
28
28
 
29
29
  - repo: https://github.com/pre-commit/mirrors-mypy
30
- rev: 'v1.12.0' # make sure this is always consistent with hatch configs
30
+ rev: 'v1.14.0' # make sure this is always consistent with hatch configs
31
31
  hooks:
32
32
  - id: mypy
33
33
  args: ["--install-types", "--non-interactive", "--ignore-missing-imports"]
@@ -1,11 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: Habiticalib
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Asynchronous Python client library for the Habitica API
5
5
  Project-URL: Documentation, https://tr4nt0r.github.io/habiticalib/
6
6
  Project-URL: Source, https://github.com/tr4nt0r/habiticalib
7
7
  Author-email: Manfred Dennerlein Rodelo <manfred@dennerlein.name>
8
8
  License: MIT License
9
+ License-File: LICENSE
9
10
  Classifier: License :: OSI Approved :: MIT License
10
11
  Classifier: Operating System :: OS Independent
11
12
  Classifier: Programming Language :: Python :: 3 :: Only
@@ -4,7 +4,7 @@ line-length = 88
4
4
 
5
5
  [tool.ruff.lint]
6
6
  select = ["ALL"]
7
- ignore = ["TRY003", "D202", "D213", "D417", "ANN003", "ANN101", "ANN102", "ANN401", "E501", "COM812", "ISC001"]
7
+ ignore = ["TRY003", "D202", "D213", "D417", "ANN003", "ANN401", "E501", "COM812", "ISC001"]
8
8
 
9
9
  [tool.ruff.lint.isort]
10
10
  force-sort-within-sections = true
@@ -66,17 +66,17 @@ path = "src/habiticalib/const.py"
66
66
  [tool.hatch.envs.default]
67
67
  python = "3.12"
68
68
  dependencies = [
69
- "aiohttp==3.11.7",
69
+ "aiohttp==3.11.11",
70
70
  "mashumaro==3.15",
71
71
  "orjson==3.10.12",
72
72
  "Pillow==11.0.0",
73
- "mypy==1.13.0",
74
- "ruff==0.8.0",
75
- "pytest==8.3.3",
73
+ "mypy==1.14.0",
74
+ "ruff==0.8.4",
75
+ "pytest==8.3.4",
76
76
  "pytest-cov==6.0.0",
77
- "mkdocs-material==9.5.45",
77
+ "mkdocs-material==9.5.49",
78
78
  "mkdocstrings[python]==0.27.0",
79
- "pytest-asyncio==0.24.0",
79
+ "pytest-asyncio==0.25.0",
80
80
  "aioresponses==0.7.7",
81
81
  "pre-commit==4.0.1",
82
82
  "syrupy==4.8.0"
@@ -1,6 +1,6 @@
1
1
  """Constants for Habiticalib."""
2
2
 
3
- __version__ = "0.3.1"
3
+ __version__ = "0.3.2"
4
4
 
5
5
  DEFAULT_URL = "https://habitica.com/"
6
6
  ASSETS_URL = "https://habitica-assets.s3.amazonaws.com/mobileApp/images/"
@@ -842,6 +842,15 @@ class Reminders:
842
842
  startDate: datetime | None = None
843
843
 
844
844
 
845
+ @dataclass(kw_only=True)
846
+ class Checklist:
847
+ """Task checklist data."""
848
+
849
+ id: UUID
850
+ text: str
851
+ completed: bool
852
+
853
+
845
854
  class TaskType(StrEnum):
846
855
  """Task types enum."""
847
856
 
@@ -881,7 +890,7 @@ class Task(TypedDict("Task", {"type": NotRequired[TaskType]}), total=True):
881
890
  date: NotRequired[datetime | dt.date | None]
882
891
  priority: NotRequired[TaskPriority]
883
892
  reminders: NotRequired[list[Reminders]]
884
- checklist: NotRequired[list[str]]
893
+ checklist: NotRequired[list[Checklist]]
885
894
  up: NotRequired[bool]
886
895
  down: NotRequired[bool]
887
896
  counterUp: NotRequired[int]
@@ -935,7 +944,7 @@ class TaskData:
935
944
  yesterDaily: bool | None = None
936
945
  completed: bool | None = None
937
946
  collapseChecklist: bool = False
938
- checklist: list[str] = field(default_factory=list)
947
+ checklist: list[Checklist] = field(default_factory=list)
939
948
  isDue: bool | None = None
940
949
  repeat: Repeat = field(default_factory=Repeat)
941
950
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes