Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Linters

on:
pull_request: {}

jobs:
linters:
name: linters
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'

steps:
- uses: actions/checkout@v6

- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: '3.14'

- name: Install and Run Pre-commit
uses: pre-commit/action@v3.0.1

- name: Download Semgrep rules
run:
git clone --depth 1 https://github.com/frappe/semgrep-rules.git
frappe-semgrep-rules

- name: Download semgrep
run: pip install semgrep

- name: Run Semgrep rules
run:
semgrep ci --config ./frappe-semgrep-rules/rules --config
r/python.lang.correctness
Loading