From 5561397aa71611586a7113bf6fdb621d3cfbdff2 Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Thu, 10 Oct 2024 15:36:54 +0200 Subject: [PATCH] Enable ruff's PLR1702 rule --- bin/run_data_task.py | 2 +- pyproject.toml | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/run_data_task.py b/bin/run_data_task.py index a38a9f3717..d8dfc4d4ac 100755 --- a/bin/run_data_task.py +++ b/bin/run_data_task.py @@ -47,7 +47,7 @@ def main(): args = parser.parse_args() - with bootstrap(args.config_file) as env: + with bootstrap(args.config_file) as env: # noqa: PLR1702 request = env["request"] settings = env["registry"].settings diff --git a/pyproject.toml b/pyproject.toml index 8d43660361..a55a250565 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,6 @@ exclude = [ "tests/bdd/steps/_compiled_feature_steps.py", ] - [tool.ruff.lint] select = [ "E", "W", # https://docs.astral.sh/ruff/rules/#pycodestyle-e-w @@ -92,7 +91,6 @@ ignore = [ "RET504", "RET501", "PLR6301", - "PLR1702", "C405", "C401", "E721",