File tree Expand file tree Collapse file tree 1 file changed +28
-20
lines changed
Expand file tree Collapse file tree 1 file changed +28
-20
lines changed Original file line number Diff line number Diff line change 1- name : Pylint
2-
3- on : [push]
4-
1+ name : pyLint
2+ on : push
53jobs :
6- build :
4+ PEP8 :
75 runs-on : ubuntu-latest
8- strategy :
9- matrix :
10- python-version : ["3.8", "3.9", "3.10"]
116 steps :
12- - uses : actions/checkout@v4
13- - name : Set up Python ${{ matrix.python-version }}
14- uses : actions/setup-python@v3
15- with :
16- python-version : ${{ matrix.python-version }}
17- - name : Install dependencies
18- run : |
19- python -m pip install --upgrade pip
20- pip install pylint
21- - name : Analysing the code with pylint
22- run : |
23- pylint $(git ls-files '*.py')
7+ - uses : actions/checkout@v2
8+ - name : Setup Python
9+ uses : actions/setup-python@v1
10+ with :
11+ python-version : 3.10.x
12+ - name : Install Python lint libraries
13+ run : |
14+ pip install autopep8 autoflake isort black
15+ - name : Check for showstoppers
16+ run : autopep8 --verbose --in-place --recursive --aggressive --aggressive .
17+ - name : Remove unused imports and variables
18+ run : autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports .
19+ - name : lint with isort and black
20+ run : |
21+ isort .
22+ black --fast .
23+ # commit changes
24+ - uses : stefanzweifel/git-auto-commit-action@v4
25+ with :
26+ commit_message : ' pyLint: auto-fixes'
27+ commit_options : ' --no-verify'
28+ repository : .
29+ commit_user_name : Pro
30+ commit_user_email : 88398455+kaif-00z@users.noreply.github.com
31+ commit_author : pro <88398455+kaif-00z@users.noreply.github.com>
You can’t perform that action at this time.
0 commit comments