All Projects → ricardochaves → python-lint

ricardochaves / python-lint

Licence: MIT License
GitHub Action for Lint your code

Programming Languages

shell
77523 projects
Dockerfile
14818 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to python-lint

rubric
Linter Config Initializer for Python
Stars: ✭ 21 (-63.16%)
Mutual labels:  flake8, black, mypy, isort
pypackage
Cookiecutter python package using Poetry, mypy, black, isort, autoflake, pytest, mkdocs, and GitHub Actions
Stars: ✭ 12 (-78.95%)
Mutual labels:  black, mypy, isort
jira-sprint-analytics
No description or website provided.
Stars: ✭ 13 (-77.19%)
Mutual labels:  flake8, black
awesome-python-code-formatters
A curated list of awesome Python code formatters
Stars: ✭ 168 (+194.74%)
Mutual labels:  black, isort
flake8-mypy
A plugin for flake8 integrating Mypy.
Stars: ✭ 103 (+80.7%)
Mutual labels:  flake8, mypy
ci-notice
😱 Notify you when CI fails.
Stars: ✭ 25 (-56.14%)
Mutual labels:  github-actions
all-about-reactJS
I'll be working on 20 different ReactJS projects over the course of 60 days and try to create mobile-first, light and dark themed apps out of them.
Stars: ✭ 15 (-73.68%)
Mutual labels:  github-actions
php-skeleton
A skeleton to start new high-quality PHP projects without worrying about bootstrapping everything from scratch.
Stars: ✭ 23 (-59.65%)
Mutual labels:  github-actions
sentry-release
GitHub Action for publishing a new release to Sentry.io
Stars: ✭ 13 (-77.19%)
Mutual labels:  github-actions
setup-task
GitHub Actions action to make Task available for use in your workflow
Stars: ✭ 14 (-75.44%)
Mutual labels:  github-actions
cake-build
Demonstrates a basic build of a .NET NuGet package using https://cakebuild.net/
Stars: ✭ 22 (-61.4%)
Mutual labels:  github-actions
action-hadolint
Run hadolint with reviewdog 🐶
Stars: ✭ 38 (-33.33%)
Mutual labels:  github-actions
DDBlackWhite
🎨🚫 Make your image black and white
Stars: ✭ 22 (-61.4%)
Mutual labels:  black
github-act-runner
act as self-hosted runner
Stars: ✭ 68 (+19.3%)
Mutual labels:  github-actions
awesome-address-book
This project shows a basic address book built with ReactJS, Redux Toolkit and Typescript 📖
Stars: ✭ 20 (-64.91%)
Mutual labels:  github-actions
setup-gleam
👷‍♀️ Gleam on GitHub Actions
Stars: ✭ 16 (-71.93%)
Mutual labels:  github-actions
bridgecrew-action
This Github Action runs Bridgecrew against an Infrastructure-as-Code repository. Bridgecrew performs static security analysis of Terraform & CloudFormation Infrastructure code.
Stars: ✭ 52 (-8.77%)
Mutual labels:  github-actions
video coloriser
Pytorch Convolutional Neural Net and GAN based video coloriser that converts black and white video to colorised video.
Stars: ✭ 29 (-49.12%)
Mutual labels:  black
build-godot-action
GitHub action that builds a Godot project for multiple platforms
Stars: ✭ 62 (+8.77%)
Mutual labels:  github-actions
setup-graphviz
▶️ GitHub Action to set up Graphviz cross-platform(Linux, macOS, Windows).
Stars: ✭ 20 (-64.91%)
Mutual labels:  github-actions

python-lint

All lints status

About

This action must be used for aplication the bids:

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].