Download .github/workflows/code_quality_check.yml from dl4ds/tutor_dev: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/dl4ds/tutor_dev/resolve/e5aac56b94de3486b8817c51ef2f4f953ae41a3a/.github/workflows/code_quality_check.yml
- Command line
-
hf download hf://spaces/dl4ds/tutor_dev@e5aac56b94de3486b8817c51ef2f4f953ae41a3a/.github/workflows/code_quality_check.yml
-
curl -L -o code_quality_check.yml https://huggingface.co/spaces/dl4ds/tutor_dev/resolve/e5aac56b94de3486b8817c51ef2f4f953ae41a3a/.github/workflows/code_quality_check.yml
638 Bytes
| name: Code Quality and Security Checks | |
| on: | |
| push: | |
| branches: [ main, dev_branch ] | |
| pull_request: | |
| branches: [ main, dev_branch ] | |
| jobs: | |
| code-quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 black bandit | |
| - name: Run Black | |
| run: black --check . | |
| - name: Run Flake8 | |
| run: flake8 . | |
| - name: Run Bandit | |
| run: | | |
| bandit -r . |