Skip to content

Commit

Permalink
Create pylint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerpq authored Oct 29, 2023
1 parent fddfd42 commit 3d36e38
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PyLint

on: [push, pull_request]

jobs:
PEP8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: "pip"
- name: Install Python lint libraries
run: |
pip install autoflake isort black
- 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
run: |
isort .
- name: lint with black
run: |
black --exclude "exampleconfig\.py" .
# commit changes
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'اشـهدُ ان عـلـياً ولـي الله'
commit_options: '--no-verify'
repository: .
commit_user_name: rogerpq
commit_user_email: rogerpq@users.noreply.github.com
commit_author: rogerpq <RepthonArabic@users.noreply.github.com>

0 comments on commit 3d36e38

Please sign in to comment.