Skip to content

Commit

Permalink
Update post_commit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ruwayd99 authored Dec 7, 2023
1 parent c29e23d commit 35a0d3e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/post_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
- name: Check for style using pylint (post-commit)
- name: Check for PEP 8 style using flake8
run: |
for file in ${{ steps.changed-files.outputs.all_modified_files }}; do
if [[ -f $file && $file == *.py ]]; then
echo $file
pylint --disable=all --enable=style $file
autopep8 --in-place --aggressive $file
fi
done
flake8 ${{ steps.changed-files.outputs.all_modified_files }}

0 comments on commit 35a0d3e

Please sign in to comment.