Skip to content

Commit fa71513

Browse files
committed
Enable all ruff rules + disable specific ones
1 parent 0e634eb commit fa71513

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

pyproject.toml

+12
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ dev = [
1919
"ruff>=0.9.1",
2020
]
2121

22+
[tool.ruff.lint]
23+
select = ["ALL"]
24+
ignore = [
25+
"COM812",
26+
"D103",
27+
"D104",
28+
"D203",
29+
"D213",
30+
"E501",
31+
"N999",
32+
]
33+
2234
[tool.mypy]
2335
strict = true
2436
enable_error_code = [

src/RobotmkLibrary/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
from __future__ import annotations
2+
13
import logging
2-
from typing import Optional
34

45

56
def monitor_subsequent_keyword_runtime(
67
*,
7-
discover_as: Optional[str] = None,
8+
discover_as: str | None = None,
89
) -> None:
910
logging.info(
1011
"The subsequent keyword will be discovered in Checkmk using its own name"
1112
if discover_as is None
12-
else f'The subsequent keyword will be discovered in Checkmk as: "{discover_as}"'
13+
else f'The subsequent keyword will be discovered in Checkmk as: "{discover_as}"',
1314
)

0 commit comments

Comments
 (0)