Skip to content

Commit 38b9eab

Browse files
committed
exclusion rules
1 parent 07e4b99 commit 38b9eab

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

pyproject.toml

+14-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ exclude = [
4040
"fedn_pb2.py",
4141
"fedn_pb2_grpc.py",
4242
".ci"
43+
"tests"
4344
]
4445

4546
lint.ignore = [
@@ -59,13 +60,23 @@ lint.ignore = [
5960

6061
"Q000", # [*] Single quotes found but double quotes preferred
6162

62-
"D212", # [*] Multi-line docstring summary should start at the first line
63+
"D212", # [*] Multi-line docstring summary should start at the first line (100+)
64+
65+
"D213", # [*] Multi-line docstring summary should start at the second line (100+)
6366

6467
"D104", # Missing docstring in public package (17)
6568

66-
"ANN201", # Missing return type annotation for public function (100)
69+
"ANN201", # Missing return type annotation for public function (100+)
6770

68-
"ANN001", # Missing type annotation for function argument (100)
71+
"ANN001", # Missing type annotation for function argument (100+)
6972

7073
"RET504", # Unnecessary assignment to `settings` before `return` statement (72)
74+
75+
"ANN204", # Missing return type annotation for special method `__init__` (61)
76+
77+
"D205", # 1 blank line required between summary line and description (100+)
78+
79+
"T201", # `print` found (31)
80+
81+
"SIM401", # Use `result.get("id", "")` instead of an `if` block (72)
7182
]

0 commit comments

Comments
 (0)