From 1c454f6b4d88349d4b1a9eac4f12df72b2883e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=20Vinh=20LUONG=20=28L=C6=AF=C6=A0NG=20Th=E1=BA=BF=20Vi?= =?UTF-8?q?nh=29?= Date: Sat, 25 Jan 2025 21:31:24 -0800 Subject: [PATCH] update Ruff linting config --- .ruff.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.ruff.toml b/.ruff.toml index 4e98fe604..b742d6940 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -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 @@ -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()` @@ -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 ]