From 187104e3966a7769e41cb51bd707d752da175970 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 2 Mar 2023 15:55:39 -0500 Subject: [PATCH] Flag out-of-date docs on CI (#3309) --- .github/workflows/ci.yaml | 2 +- docs/configuration.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3965ad3486..23ce1b0051 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,7 +29,7 @@ jobs: - run: ./target/debug/ruff_dev generate-all - run: git diff --quiet README.md || echo "::error file=README.md::This file is outdated. Run 'cargo dev generate-all'." - run: git diff --quiet ruff.schema.json || echo "::error file=ruff.schema.json::This file is outdated. Run 'cargo dev generate-all'." - - run: git diff --exit-code -- README.md ruff.schema.json + - run: git diff --exit-code -- README.md ruff.schema.json docs cargo-fmt: name: "cargo fmt" diff --git a/docs/configuration.md b/docs/configuration.md index 4417c093e6..5587637c91 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -206,6 +206,8 @@ Options: Run in watch mode by re-running whenever files change --fix-only Fix any fixable lint violations, but don't report on leftover violations. Implies `--fix` + --ignore-noqa + Ignore any `# noqa` comments --format Output serialization format for violations [env: RUFF_FORMAT=] [possible values: text, json, junit, grouped, github, gitlab, pylint] --target-version