You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 regels
686 B

  1. name: Linters
  2. on:
  3. pull_request: { }
  4. jobs:
  5. linters:
  6. name: linters
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - name: Set up Python 3.10
  11. uses: actions/setup-python@v2
  12. with:
  13. python-version: '3.10'
  14. - name: Install and Run Pre-commit
  15. uses: pre-commit/action@v2.0.3
  16. - name: Download Semgrep rules
  17. run: git clone --depth 1 https://github.com/frappe/semgrep-rules.git frappe-semgrep-rules
  18. - name: Download semgrep
  19. run: pip install semgrep==0.97.0
  20. - name: Run Semgrep rules
  21. run: semgrep ci --config ./frappe-semgrep-rules/rules --config r/python.lang.correctness