Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#12466)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4](astral-sh/ruff-pre-commit@v0.8.3...v0.8.4)
- [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.0](pre-commit/mirrors-mypy@v1.13.0...v1.14.0)

* Update convert_number_to_words.py

* Update convert_number_to_words.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
pre-commit-ci[bot] and cclauss authored Dec 29, 2024
1 parent bfc804a commit c932883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: auto-walrus

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
rev: v0.8.4
hooks:
- id: ruff
- id: ruff-format
Expand Down Expand Up @@ -47,7 +47,7 @@ repos:
- id: validate-pyproject

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.0
hooks:
- id: mypy
args:
Expand Down
8 changes: 4 additions & 4 deletions conversions/convert_number_to_words.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import Enum
from typing import ClassVar, Literal
from typing import Literal


class NumberingSystem(Enum):
Expand Down Expand Up @@ -54,7 +54,7 @@ def max_value(cls, system: str) -> int:


class NumberWords(Enum):
ONES: ClassVar[dict[int, str]] = {
ONES = { # noqa: RUF012
0: "",
1: "one",
2: "two",
Expand All @@ -67,7 +67,7 @@ class NumberWords(Enum):
9: "nine",
}

TEENS: ClassVar[dict[int, str]] = {
TEENS = { # noqa: RUF012
0: "ten",
1: "eleven",
2: "twelve",
Expand All @@ -80,7 +80,7 @@ class NumberWords(Enum):
9: "nineteen",
}

TENS: ClassVar[dict[int, str]] = {
TENS = { # noqa: RUF012
2: "twenty",
3: "thirty",
4: "forty",
Expand Down

0 comments on commit c932883

Please sign in to comment.