-
Notifications
You must be signed in to change notification settings - Fork 521
35 lines (32 loc) · 1001 Bytes
/
PyLint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: PyLint
on: [push, pull_request]
jobs:
PEP8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.10.13
- 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 --ignore-init-module-imports .
- name: lint with isort
run: |
isort .
- name: lint with black
run: |
black .
# commit changes
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Auto Fixes'
commit_options: '--no-verify'
repository: .
commit_user_name: AnonymousX1025
commit_user_email: TheAnonymousX1025@gmail.com
commit_author: AnonymousX1025 <TheAnonymousX1025@gmail.com>