-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8f45f0
commit 4618a54
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
target-version = "py311" | ||
|
||
lint.select = ["ALL"] | ||
|
||
lint.ignore = [ | ||
"ANN101", # Missing type annotation for `self` in method | ||
"D203", # 1 blank line required before class docstring | ||
"D213", # Multi-line docstring summary should start at the second line | ||
"EM101", # Exception must not use a string literal, assign to variable first | ||
"EM102", # Exception must not use an f-string literal, assign to variable first | ||
"FBT001", # Boolean-typed positional argument in function definition | ||
"FBT002", # Boolean default positional argument in function definition | ||
"FBT003", # Boolean positional value in function call | ||
"N818", # Exception name should be named with an Error suffix | ||
"PLR0912", # Too many branches | ||
"TRY003", # Avoid specifying long messages outside the exception class | ||
] | ||
|
||
[lint.per-file-ignores] | ||
"library_test.py" = [ | ||
"PLR0915", # Too many statements | ||
"T201", # `print` found | ||
] | ||
"tests/*" = [ | ||
"S101", # Use of `assert` detected | ||
] | ||
|
||
[lint.mccabe] | ||
max-complexity = 18 |