Skip to content
play

GitHub Action

Python Code Quality and Lint

v1.1.0 Latest version
Use latest version
play

Python Code Quality and Lint

Supports Pylint, pycodestyle, Flake8, black, mypy and isort

Installation

Copy and paste the following snippet into your .yml file.

- name: Python Code Quality and Lint
  uses: ricardochaves/python-lint@v1.1.0
Learn more about this action in ricardochaves/python-lint
Choose a version

python-lint

GitHub Actions status

This action must be used for aplication the bids:

Usage

See action.yml

Basic:

steps:
  - uses: actions/checkout@v1
  - uses: ricardochaves/python-lint@v1.1.0

Options:

steps:
  - uses: actions/checkout@v1
  - uses: ricardochaves/python-lint@v1.1.0
    with:
      python-root-list: "python_alelo tests"
      use-pylint: false
      use-pycodestyle: false
      use-flake8: false
      use-black: false
      use-mypy: false
      use-isort: false
      extra-pylint-options: ""
      extra-pycodestyle-options: ""
      extra-flake8-options: ""
      extra-black-options: ""
      extra-mypy-options: ""
      extra-isort-options: ""

Command build logic list:

pylint $(extra-pylint-options) $(python-root-list)

pycodestyle $(extra-pycodestyle-options) $(python-root-list)

flake8 $(extra-flake8-options) $(python-root-list)

black --check $(extra-black-options) $(python-root-list)

mypy $(extra-mypy-options) $(python-root-list)"

isort -rc $(extra-isort-options) $(python-root-list) -c --diff

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See Contributor's Guide

You can’t perform that action at this time.