Skip to content

Commit

Permalink
Bump the dependencies group with 6 updates (#58)
Browse files Browse the repository at this point in the history
* Bump the dependencies group with 6 updates

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: poethepoet
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: pytest-asyncio
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* update precommit

* fix mypy lint by updating enums doctring and typing

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kira <[email protected]>
  • Loading branch information
dependabot[bot] and kiraware authored Jan 2, 2025
1 parent bcaa2ab commit 541cbc3
Show file tree
Hide file tree
Showing 7 changed files with 715 additions and 709 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:

# mypy - lint-like type checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.0
rev: v1.14.1
hooks:
- id: mypy
name: mypy
Expand Down
294 changes: 150 additions & 144 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ types-defusedxml = "^0.7.0.20240218"
[tool.poetry.group.dev.dependencies]
bandit = "^1.7.6"
mypy = "^1.8.0"
poethepoet = "^0.31.1"
poethepoet = "^0.32.0"
ruff = "^0.8.1"

[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
pytest-asyncio = "^0.24.0"
pytest-asyncio = "^0.25.0"
pytest-cov = "^6.0.0"
pytest-dotenv = "^0.5.2"

Expand Down
36 changes: 18 additions & 18 deletions src/paspybin/enums/expire.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ class Expire(StrEnum):
A str enum class that define valid expiration date.
Attributes:
NEVER: `"N"`, never expire
TEN_MINUTES: `"10M"`, expire after ten minutes
ONE_HOUR: `"1H"`, expire after one hour
ONE_DAY: `"1D"`, expire after one day
ONE_WEEK: `"1W"`, expire after one week
TWO_WEEKS: `"2W"`, expire after two weeks
ONE_MONTH: `"1M"`, expire after one month
SIX_MONTHS: `"6M"`, expire after six month
ONE_YEAR: `"1Y"`, expire after one year
NEVER (str): `"N"`, never expire
TEN_MINUTES (str): `"10M"`, expire after ten minutes
ONE_HOUR (str): `"1H"`, expire after one hour
ONE_DAY (str): `"1D"`, expire after one day
ONE_WEEK (str): `"1W"`, expire after one week
TWO_WEEKS (str): `"2W"`, expire after two weeks
ONE_MONTH (str): `"1M"`, expire after one month
SIX_MONTHS (str): `"6M"`, expire after six month
ONE_YEAR (str): `"1Y"`, expire after one year
Examples:
>>> Expire("N")
Expand All @@ -35,12 +35,12 @@ class Expire(StrEnum):
N
"""

NEVER: str = "N"
TEN_MINUTES: str = "10M"
ONE_HOUR: str = "1H"
ONE_DAY: str = "1D"
ONE_WEEK: str = "1W"
TWO_WEEKS: str = "2W"
ONE_MONTH: str = "1M"
SIX_MONTHS: str = "6M"
ONE_YEAR: str = "1Y"
NEVER = "N"
TEN_MINUTES = "10M"
ONE_HOUR = "1H"
ONE_DAY = "1D"
ONE_WEEK = "1W"
TWO_WEEKS = "2W"
ONE_MONTH = "1M"
SIX_MONTHS = "6M"
ONE_YEAR = "1Y"
Loading

0 comments on commit 541cbc3

Please sign in to comment.