diff --git a/config/ruff.toml b/config/ruff.toml new file mode 100644 index 00000000..7a527d61 --- /dev/null +++ b/config/ruff.toml @@ -0,0 +1,6 @@ +[ lint ] +# select = ["E4", "E7", "E9", "F", "B"] + +ignore = [ "E722", "F405", "F403" ] + + diff --git a/pixi.lock b/pixi.lock index e21b446a..127e93f2 100644 --- a/pixi.lock +++ b/pixi.lock @@ -4169,7 +4169,7 @@ packages: name: med-imagetools version: 1.6.0rc2 path: . - sha256: 6decc7cb0fefe88ea6c28eec9ad5d9cf865e10470323ee836c6f5851810fe78a + sha256: ca86d58ef457a4656a7034b500f5863b368703f931224edcdec41a34a9370eb3 requires_dist: - h5py>=3.11.0,<4 - joblib>=1.4.2,<2 diff --git a/pixi.toml b/pixi.toml index 417fb2c5..e379c366 100644 --- a/pixi.toml +++ b/pixi.toml @@ -68,6 +68,16 @@ description = "Run pytest and generate coverage report" ruff = ">=0.4.4" pre-commit = ">=3.7.1,<3.8" +[feature.style.tasks] +lint.cmd = [ + "ruff", + "--config", + "config/ruff.toml", + "check", + "src", +] +lint.inputs = ["config/ruff.toml", "src"] +lint.description = "Run ruff check" #################################### RELEASE & BUILD ############################################### diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index ac244869..00000000 --- a/ruff.toml +++ /dev/null @@ -1,2 +0,0 @@ -[ lint ] -ignore = [ "E722", "F405", "F403" ] \ No newline at end of file