Open liblaf opened 1 week ago
I am expecting MegaLinter to search for linter config files in the following precedence:
GITHUB_WORKSPACE
LINTER_RULES_PATH
However, MegaLinter seems to ignore config files in workspace when LINTER_RULES_PATH is set.
Here is the demo workflow run.
There should be no errors since F401 is ignored in .ruff.toml. However, .ruff.toml under repository root seems not to be used by MegaLinter.
F401
.ruff.toml
Setting PYTHON_RUFF_CONFIG_FILE: LINTER_DEFAULT in .mega-linter.yaml can solve the issue.
PYTHON_RUFF_CONFIG_FILE: LINTER_DEFAULT
.mega-linter.yaml
Describe the bug
I am expecting MegaLinter to search for linter config files in the following precedence:
GITHUB_WORKSPACE
LINTER_RULES_PATH
However, MegaLinter seems to ignore config files in workspace when
LINTER_RULES_PATH
is set.To Reproduce
Here is the demo workflow run.
Expected behavior
There should be no errors since
F401
is ignored in.ruff.toml
. However,.ruff.toml
under repository root seems not to be used by MegaLinter.Additional context
Setting
PYTHON_RUFF_CONFIG_FILE: LINTER_DEFAULT
in.mega-linter.yaml
can solve the issue.