Skip to content

Commit

Permalink
chore: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 22, 2024
1 parent 2ff75f2 commit 29e0e20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mknodes/utils/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
case _:
raise TypeError(color)

def __str__(self):
def __str__(self) -> str: # type: ignore[override]
"""Return str in form of rgb(255, 0, 0)."""
return self.to_string(comma=True)

Expand Down
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ filter-commits = "v0.30.0.."

[tool.ruff]
line-length = 90
extend-exclude = [
'docs',
]
target-version = "py311"

[tool.ruff.lint]
select = [
"A", # Flake8-builtins
# "ANN", # Flake8-Annotations
Expand Down Expand Up @@ -234,10 +240,6 @@ ignore = [
"TRY003", # Avoid specifying long messages outside the exception class
"COM812", "COM819", "D206", "E501", "ISC001", "Q000", "Q001", "Q002", "Q003", "W191", # for ruff-format
]
extend-exclude = [
'docs',
]
target-version = "py311"

[tool.ruff.format]
# Enable preview style formatting.
Expand All @@ -249,7 +251,7 @@ docstring-quotes = "double"

[tool.ruff.lint.isort]
lines-after-imports = 2
lines-between-types = 1
# lines-between-types = 1
# atomic = true
force-sort-within-sections = true
combine-as-imports = true
Expand Down

0 comments on commit 29e0e20

Please sign in to comment.