Skip to content

Commit

Permalink
Enable all ruff rules + disable specific ones
Browse files Browse the repository at this point in the history
  • Loading branch information
jherbel committed Jan 14, 2025
1 parent 0e634eb commit fa71513
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ dev = [
"ruff>=0.9.1",
]

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812",
"D103",
"D104",
"D203",
"D213",
"E501",
"N999",
]

[tool.mypy]
strict = true
enable_error_code = [
Expand Down
7 changes: 4 additions & 3 deletions src/RobotmkLibrary/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from __future__ import annotations

import logging
from typing import Optional


def monitor_subsequent_keyword_runtime(
*,
discover_as: Optional[str] = None,
discover_as: str | None = None,
) -> None:
logging.info(
"The subsequent keyword will be discovered in Checkmk using its own name"
if discover_as is None
else f'The subsequent keyword will be discovered in Checkmk as: "{discover_as}"'
else f'The subsequent keyword will be discovered in Checkmk as: "{discover_as}"',
)

0 comments on commit fa71513

Please sign in to comment.