Ankush Menat | 65279c2 | 2021-09-01 15:52:16 +0530 | [diff] [blame] | 1 | name: Linters |
| 2 | |
| 3 | on: |
| 4 | pull_request: { } |
| 5 | |
| 6 | jobs: |
| 7 | |
| 8 | linters: |
| 9 | name: linters |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - uses: actions/checkout@v2 |
| 13 | - uses: returntocorp/semgrep-action@v1 |
| 14 | env: |
| 15 | SEMGREP_TIMEOUT: 120 |
| 16 | with: |
| 17 | config: >- |
| 18 | r/python.lang.correctness |
| 19 | .github/helper/semgrep_rules |
| 20 | |
| 21 | - name: Set up Python 3.8 |
| 22 | uses: actions/setup-python@v2 |
| 23 | with: |
| 24 | python-version: 3.8 |
| 25 | |
| 26 | - name: Install and Run Pre-commit |
Chillar Anand | 915b343 | 2021-09-02 16:44:59 +0530 | [diff] [blame] | 27 | uses: pre-commit/action@v2.0.3 |