Skip to content

Commit

Permalink
ci: Update and rename pylint.yml to code_lint_format.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Ribeiro <[email protected]>
  • Loading branch information
brunus-reberes authored Apr 20, 2023
1 parent 4b02370 commit c6e9454
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Pylint
name: Code lint and formatter

on: [push]
on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -17,7 +17,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install pylint autoflake isort black
- name: Python Linter autoflake, isort, black
uses: jiwidi/python-lint-action@v1
- name: Analysing the code with pylint
run: |
autoflake --remove-all-unused-imports --remove-unused-variables --expand-star-imports --ignore-init-module-imports -ri .
isort --profile black .
black .
pylint $(git ls-files '*.py')

0 comments on commit c6e9454

Please sign in to comment.