Skip to content

Commit

Permalink
update Ruff linting config
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVinhLuong102 committed Jan 26, 2025
1 parent 02cfb0e commit 1c454f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ignore = [
"B008", # do not perform function call in argument defaults;
# instead, perform the call within the function, or read the default from a module-level singleton variable
"B027", # ... is an empty method in an abstract base class, but has no abstract decorator
"B903", # Class could be dataclass or namedtuple
"B903", # class could be dataclass or namedtuple
"B905", # `zip()` without an explicit `strict=` parameter
"BLE001", # do not catch blind exception
"COM812", # trailing comma missing
Expand Down Expand Up @@ -94,6 +94,7 @@ ignore = [
"PGH004", # use specific rule codes when using `ruff: noqa`
"PIE790", # unnecessary `pass` statement
"PLC2701", # private name import from external module
"PT028", # test function parameter has default argument
"PTH100", # `os.path.abspath()` should be replaced by `Path.resolve()`
"PTH103", # `os.makedirs()` should be replaced by `Path.mkdir(parents=True)`
"PTH109", # `os.getcwd()` should be replaced by `Path.cwd()`
Expand Down Expand Up @@ -153,5 +154,5 @@ ignore = [
"UP007", # use `X | Y` for type annotations
"UP035", # `typing.[X]` is deprecated, use `[x]` instead
"UP039", # unnecessary parentheses after class definition
"UP045", # Use `X | None` for type annotations
"UP045", # use `X | None` for type annotations
]

0 comments on commit 1c454f6

Please sign in to comment.