[llvm] GitHub Actions: Lint Python code for just for SyntaxErrors (PR #123940)
Christian Clauss via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 05:05:41 PST 2025
https://github.com/cclauss created https://github.com/llvm/llvm-project/pull/123940
None
>From e92a0697aedd148ff8f1a86ccfcdc8877f51ad75 Mon Sep 17 00:00:00 2001
From: Christian Clauss <cclauss at me.com>
Date: Wed, 22 Jan 2025 14:05:20 +0100
Subject: [PATCH] GitHub Actions: Lint Python code for just for SyntaxErrors
---
.github/workflows/lint.yml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 .github/workflows/lint.yml
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 00000000000000..9364d6ea369ea0
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,15 @@
+name: lint
+
+on: [push, pull_request]
+
+permissions:
+ contents: read
+
+jobs:
+ lint_python:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout at v4
+ - uses: astral-sh/ruff-action at v3
+ with: # Ignore all ruff rules except Python Syntax Errors
+ args: "check --ignore=ALL"
More information about the llvm-commits
mailing list