Skip to content

Commit

Permalink
Use env again
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion committed Nov 12, 2023
1 parent f634acf commit d268f40
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,19 @@ jobs:
'${{ steps.diff-files.outputs.files_added }}\n${{ steps.diff-files.outputs.files_modified }}'
| grep '\.py' | tr '\n' ' '
)" >> $GITHUB_OUTPUT
- name: Activate env
run: |
source .venv/bin/activate
- name: Check code formatting
run: black . --check
run: |
source .venv/bin/activate &&
black . --check
- name: Check spelling
run: codespell -L ddress,halp,ot,pres,requestor,requestors -d pynetdicom
run: |
source .venv/bin/activate &&
codespell -L ddress,halp,ot,pres,requestor,requestors -d pynetdicom
- name: Check for syntax errors
run: python -m flake8 --select=E901,E999,F822,F823 ${{ steps.pydiff.outputs.pyfiles }} --ignore F821
run: |
source .venv/bin/activate &&
python -m flake8 --select=E901,E999,F822,F823 ${{ steps.pydiff.outputs.pyfiles }} --ignore F821
- name: Check for style warnings
run: python -m flake8 --exit-zero ${{ steps.pydiff.outputs.pyfiles }}
run: |
source .venv/bin/activate &&
python -m flake8 --exit-zero ${{ steps.pydiff.outputs.pyfiles }}

0 comments on commit d268f40

Please sign in to comment.