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.
 
 
 
 
 
 

32 lines
698 B

  1. name: Linters
  2. on:
  3. pull_request: { }
  4. jobs:
  5. linters:
  6. name: Frappe Linter
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - name: Set up Python 3.8
  11. uses: actions/setup-python@v2
  12. with:
  13. python-version: 3.8
  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. - uses: returntocorp/semgrep-action@v1
  19. env:
  20. SEMGREP_TIMEOUT: 120
  21. with:
  22. config: >-
  23. r/python.lang.correctness
  24. ./frappe-semgrep-rules/rules