Skip to content

Commit 784ef68

Browse files
Update pyproject.toml; formatting
1 parent f137beb commit 784ef68

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

pyproject.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,25 @@ line-length = 88
3535
# N803 Argument name should be lowercase
3636
# N806: Variable in function should be lowercase
3737
# N999: Invalid module name
38+
# PLR2004 Magic value used in comparison
3839
# RET505: Unnecessary `elif` after `return` statement
3940
# RUF002: Docstring contains ambiguous `ν`
4041
# RUF003: Docstring contains ambiguous `ν`
4142
# SIM108 Use ternary operator
4243
# T201: `print` found
4344
# W605: invalid escape sequence '\ '
44-
ignore = ["A002", "E741", "N802", "N803", "N806", "N999", "RET505", "RUF002", "RUF003", "SIM108", "T201", "W605"]
45+
ignore = [
46+
"A002",
47+
"E741",
48+
"N802",
49+
"N803",
50+
"N806",
51+
"N999",
52+
"PLR2004",
53+
"RET505",
54+
"RUF002",
55+
"RUF003",
56+
"SIM108",
57+
"T201",
58+
"W605"
59+
]

src/longest_substring_with_at_most_k_distinct_characters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
Simply substitute 'k' for '2'. Easy bag.
1111
"""
1212

13+
1314
class Solution:
1415
def lengthOfLongestSubstringKDistinct(self, s: str, k: int) -> int:
1516
left, right, maximum_size = 0, 0, 0

0 commit comments

Comments
 (0)