From 7ec41adfa0dd7a3625577ee9ee79dfaa048a66e3 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 22 Sep 2024 17:39:54 +0200 Subject: [PATCH] STY: Enforce ruff/flake8-pie rules (PIE) --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ff5168f9c..f482c5e3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,8 +115,14 @@ line-length = 99 exclude = ["doc", "nibabel/externals", "tools", "version.py", "versioneer.py"] [tool.ruff.lint] -select = ["F", "I", "Q"] +select = [ + "F", + "I", + "PIE", + "Q", +] ignore = [ + "PIE790", # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules "W191", "E111",