Update github/codeql-action action to v3 #1370
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PyLint | |
on: [push, pull_request] | |
jobs: | |
PEP8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install Python lint libraries | |
run: | | |
pip install autopep8 autoflake isort black | |
- name: Check for showstoppers | |
run: | | |
autopep8 --verbose --in-place --recursive --aggressive --aggressive --ignore=W605. *.py | |
- name: Remove unused imports and variables | |
run: | | |
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports . | |
- name: lint with isort and black | |
run: | | |
isort . | |
black . | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'Auto Fixes: Code Formatting' | |
commit_options: '--no-verify' | |
repository: . | |
commit_user_name: MrBotDeveloper | |
commit_user_email: [email protected] | |
commit_author: Mr. Developer <[email protected]> |