🌐 AI搜索 & 代理 主页
Skip to content
Prev Previous commit
Next Next commit
Disable E501
  • Loading branch information
AA-Turner committed Jul 19, 2024
commit 13cb3f39c776026e8d60ab9a304143c5a43058f7
12 changes: 2 additions & 10 deletions Doc/.ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,8 @@ select = [
"UP", # pyupgrade
"W", # pycodestyle
]

[lint.per-file-ignores]
"tools/extensions/lexers/peg_lexer.py" =[
"E501",
]
"tools/extensions/c_annotations.py" =[
"E501",
]
"tools/extensions/pyspecific.py" =[
"E501",
ignore = [
"E501", # We use auto-formatting, so ignore line length errors
]

[format]
Expand Down
2 changes: 1 addition & 1 deletion Doc/tools/check-warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# Regex pattern to match the line numbers in a Git unified diff
DIFF_PATTERN = re.compile(
r'^@@ -(?P<linea>\d+)(?:,(?P<removed>\d+))? \+(?P<lineb>\d+)(?:,(?P<added>\d+))? @@', # NoQA: E501
r'^@@ -(?P<linea>\d+)(?:,(?P<removed>\d+))? \+(?P<lineb>\d+)(?:,(?P<added>\d+))? @@',
flags=re.MULTILINE,
)

Expand Down