Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
sun

GitHub Action

Python Linter

v0.1-beta.3

Python Linter

sun

Python Linter

Ensure Python code quality. Supports pylint, black, mypy and isort

Installation

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

              

- name: Python Linter

uses: sunnysid3up/[email protected]

Learn more about this action in sunnysid3up/python-linter

Choose a version

Python Linter

Ensure Python code quality. Supports pylint, black, mypy and isort.

pylint

Pylint is a Python static code analysis tool which looks for programming errors, helps enforcing a coding standard, sniffs for code smells and offers simple refactoring suggestions.

black

Black is the uncompromising Python code formatter.

mypy

Mypy is an optional static type checker for Python. You can add type hints (PEP 484) to your Python programs, and use mypy to type check them statically. Find bugs in your programs without even running them!

isort

isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.

Usage

    steps:
    - uses: actions/checkout@v2

    - name: Python Linter
      uses: sunnysid3up/python-linter@master
      with:
        source: "src"
        django: true,
        mypy-options: "--ignore-missing-imports --show-error-codes"
        isort-options: "-w 100"