GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ebuyum-intel/python-lint: GitHub Action for Lint your code

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

43 Commits
43 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 
entrypoint.sh
entrypoint.sh
 
 

Repository files navigation

python-lint

All lints status

About

This action must be used for aplication the bids:

  • black
  • pylint
  • isort
  • pycodestyle
  • flake8
  • mypy

Usage

See action.yml

Basic:

steps:
  - uses: actions/checkout@v1
  - uses: ricardochaves/[email protected]

Options:

steps:
  - uses: actions/checkout@v1
  - uses: ricardochaves/[email protected]
    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 $(extra-isort-options) $(python-root-list) -c --diff

Versions used

To identify the version used you must consult the CHANGELOG.md of the image used in our Dockerfile.

Test locally

Use act to test the action locally. Unfortunately it still doesn't work on all OSs, if you can't use it try the solution below.

Some libs may behave differently between OSs. That's why this action runs on a docker image. This makes it possible for us to test some things locally.

Using docker compose, add the following service

  test-lint:
    image: ricardobchaves6/python-lint-image:1.3.0
    working_dir: /app
    volumes:
      - .:/app
    command: ["mypy", "."]

Use the commands described in the section above. Choose the version of the image equivalent to the version of the action.

License

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

Contributions

Contributions are welcome! See CONTRIBUTING.md

About

GitHub Action for Lint your code

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.