Skip to content
Open
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: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py39-plus]
args: [--py310-plus]

- repo: https://github.com/DanielNoord/pydocstringformatter
rev: v0.7.5
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Official wrapper for the [Cookie](https://cookieapp.me) API.

## ⚙️ Installation
Python 3.9 or higher is required
Python 3.10 or higher is required
```
pip install cookie-api
```
Expand Down
2 changes: 1 addition & 1 deletion cookie/_internal/model_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use_union_operator=True,
use_double_quotes=True,
use_standard_collections=True,
target_python_version=PythonVersion.PY_39,
target_python_version=PythonVersion.PY_310,
custom_formatters=["formatter"],
output=Path("cookie/models.py"),
output_model_type=DataModelType.PydanticV2BaseModel,
Expand Down
14 changes: 7 additions & 7 deletions cookie/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from __future__ import annotations

from datetime import date, datetime
from datetime import date

from pydantic import BaseModel, Field
from pydantic import AwareDatetime, BaseModel, Field

from ._internal import BaseChart

Expand All @@ -17,7 +17,7 @@ class Chart(BaseChart):

class Daily(BaseModel):
ready: bool = Field(..., title="Ready")
next: datetime = Field(..., title="Next")
next: AwareDatetime = Field(..., title="Next")
streak: int = Field(..., title="Streak")
max_streak: int = Field(..., title="Max Streak")

Expand Down Expand Up @@ -50,7 +50,7 @@ class MemberActivity(BaseModel):

class Oven(BaseModel):
ready: bool = Field(..., title="Ready")
next: datetime = Field(..., title="Next")
next: AwareDatetime = Field(..., title="Next")


class Steals(BaseModel):
Expand Down Expand Up @@ -89,13 +89,13 @@ class VoiceLevel(BaseModel):


class Work(BaseModel):
career: str = Field(..., title="Career")
career: str | None = Field(..., title="Career")
total_shifts: int = Field(..., title="Total Shifts")
current_shifts: int = Field(..., title="Current Shifts")
job: str = Field(..., title="Job")
job: str | None = Field(..., title="Job")
job_level: int = Field(..., title="Job Level")
job_ready: bool = Field(..., title="Job Ready")
next_shift: datetime = Field(..., title="Next Shift")
next_shift: AwareDatetime = Field(..., title="Next Shift")


class HTTPValidationError(BaseModel):
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "cookie-api"
description = "An API wrapper for the Cookie API"
requires-python = ">=3.9"
requires-python = ">=3.10"
license = {text = "MIT"}
readme = "README.md"
keywords = ["discord", "bot", "cookie", "api"]
Expand All @@ -13,7 +13,6 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
1 change: 0 additions & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
httpx
pydantic
python-dotenv
eval_type_backport; python_version<='3.9'
Loading