[llvm] GitHub Actions: Lint Python code for just for SyntaxErrors (PR #123940)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 05:06:40 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Christian Clauss (cclauss)
<details>
<summary>Changes</summary>
Find all Python SyntaxErrors.
Commits:
1. Find SyntaxErrors.
2. Fix SyntaxErrors.
Test results: https://github.com/cclauss/arm-toolchain/actions
---
Full diff: https://github.com/llvm/llvm-project/pull/123940.diff
1 Files Affected:
- (added) .github/workflows/lint.yml (+15)
``````````diff
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"
``````````
</details>
https://github.com/llvm/llvm-project/pull/123940
More information about the llvm-commits
mailing list