mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-05-18 15:20:12 +02:00
committed by
GitHub
parent
c9185454fa
commit
35619fdbcc
@@ -36,6 +36,7 @@ async function run(): Promise<void> {
|
||||
|
||||
addRuffToPath(setupResult.ruffDir);
|
||||
setOutputFormat();
|
||||
addMatchers();
|
||||
core.setOutput("ruff-version", setupResult.version);
|
||||
core.info(`Successfully installed ruff version ${setupResult.version}`);
|
||||
|
||||
@@ -92,6 +93,17 @@ function setOutputFormat() {
|
||||
core.info("Set RUFF_OUTPUT_FORMAT to github");
|
||||
}
|
||||
|
||||
function addMatchers(): void {
|
||||
const matchersPath = path.join(
|
||||
__dirname,
|
||||
`..${path.sep}..`,
|
||||
".github",
|
||||
"matchers",
|
||||
);
|
||||
core.info(`##[add-matcher]${path.join(matchersPath, "check.json")}`);
|
||||
core.info(`##[add-matcher]${path.join(matchersPath, "format.json")}`);
|
||||
}
|
||||
|
||||
async function runRuff(
|
||||
ruffExecutablePath: string,
|
||||
args: string[],
|
||||
|
||||
Reference in New Issue
Block a user