From cdb2de2210345ba1743adb4b240dfa813ecdaf4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 14 Nov 2024 13:17:43 +0100 Subject: [PATCH] Add Ruff --- prospector_profile_duplicated/pylint.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/prospector_profile_duplicated/pylint.yaml b/prospector_profile_duplicated/pylint.yaml index 33fedf5..3ffed24 100644 --- a/prospector_profile_duplicated/pylint.yaml +++ b/prospector_profile_duplicated/pylint.yaml @@ -21,3 +21,9 @@ pyflakes: - F401 # unused import, with: unused-import - F811 # redefinition of unused, with: redefined-outer-name - F841 # local variable is assigned to but never used, with unused-variable + +ruff: + disable: + - B904 # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling [See: https://docs.astral.sh/ruff/rules/raise-without-from-inside-except] + - S602 # `subprocess` call with `shell=True` identified, security issue [See: https://docs.astral.sh/ruff/rules/subprocess-popen-with-shell-equals-true] + - SIM115 # Use a context manager for opening files [See: https://docs.astral.sh/ruff/rules/open-file-with-context-handler]