Skip to content

Commit

Permalink
Merge pull request #72 from gjohansson-ST/ruff-ignore-comments
Browse files Browse the repository at this point in the history
Add comments to ruff ignore
  • Loading branch information
gjohansson-ST committed Jul 2, 2024
2 parents 4aaa6f0 + 8c265ef commit 1c44ef8
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -415,31 +415,31 @@ ignore = [
"ISC001",

# Disabled because ruff does not understand type of __all__ generated by a function
"PLE0605",
"PLE0605", # Invalid format for __all__, must be tuple or list

# temporarily disabled
"PT019",
"PT019", # Fixture {name} without value is injected as parameter
"PYI024", # Use typing.NamedTuple instead of collections.namedtuple
"RET503",
"RET501",
"TRY002",
"TRY301",
"EM101",
"FBT001",
"FBT002",
"PERF401",
"TCH002",
"TCH003",
"A002",
"A001",
"DTZ005",
"B008",
"EM102",
"DTZ007",
"S320",
"ANN401",
"N818",
"S101"
"RET503", # Checks for missing explicit return statements
"RET501", # Do not explicitly return None in function if it is the only possible return value
"TRY002", # Create your own exception
"TRY301", # Checks for raise statements within try blocks
"EM101", # Exception must not use a string literal, assign to variable first
"FBT001", # Boolean-typed positional argument in function definition
"FBT002", # Boolean default positional argument in function definition
"PERF401", # Use a list comprehension to create a transformed list
"TCH002", # Move third-party import {} into a type-checking block
"TCH003", # Move standard library import {} into a type-checking block
"A002", # Argument {name} is shadowing a Python builtin
"A001", # Variable {name} is shadowing a Python builtin
"DTZ005", # datetime.datetime.now() called without a tz argument
"B008", # Do not perform function call {name} in argument defaults
"EM102", # Exception must not use an f-string literal, assign to variable first
"DTZ007", # Naive datetime constructed using datetime.datetime.strptime() without %z
"S320", # Using lxml to parse untrusted data is known to be vulnerable to XML attacks
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"N818", # Exception name {name} should be named with an Error suffix
"S101" # Use of assert detected
]
select = ["ALL"]

Expand Down

0 comments on commit 1c44ef8

Please sign in to comment.