From 31211553d831156bd6b69a218938dd4686d39fa9 Mon Sep 17 00:00:00 2001 From: Daniel Nilsson Date: Wed, 27 Nov 2024 15:48:28 +0100 Subject: [PATCH] lint action --- .github/workflows/lint.yml | 24 ++++++++++++++++++++++++ .github/workflows/lint_and_fix.yml | 0 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/lint_and_fix.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..12986b6 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +# Basic CI setup: Lint with ruff +name: Test + +on: + pull_request: + push: + branches: + - main + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v3 + - name: Ruff lint + run: uv run ruff check . + - name: Ruff format + run: uv run ruff format --diff . + + # This isn't a general Python lint, this style is just used in this repository + - name: Prettier format + run: npx prettier --prose-wrap always --check "**/*.md" diff --git a/.github/workflows/lint_and_fix.yml b/.github/workflows/lint_and_fix.yml deleted file mode 100644 index e69de29..0000000