This is a fork of Ricardo Chaves python-lint action but I added some tools that I like to use.
This action may be used to execute the following applications:
The default for each tool is check only, not make automatic changes. It's recommended that the tools you use in this action be used in-line with your editor or IDE and/or as pre-commit hooks. This action just verifies you didn't forget to do that.
However, you could choose to have fixes applies by each tool. If you do, it's recommended that the autoformatters come first, followed by the style checking tools to verify the autoformatter results. After this, the type checkers and linters can be run.
See action.yml
Basic:
steps:
- uses: actions/checkout@v2
- uses: weibullguy/python-lint-plus@master
Options:
steps:
- uses: actions/checkout@v2
- uses: weibullguy/python-lint-plus@master
with:
python-root-list: "python_alelo tests"
use-black: false
use-isort: false
use-docformatter: false
use-pycodestyle: false
use-pydocstyle: false
use-mypy: false
use-pylint: false
use-flake8: false
extra-black-options: ""
extra-isort-options: ""
extra-docformatter-options: ""
extra-pycodestyle-options: ""
extra-pydocstyle-options: ""
extra-mypy-options: ""
extra-pylint-options: ""
extra-flake8-options: ""
Command build logic list:
black --check $(extra-black-options) $(python-root-list)
isort $(extra-isort-options) $(python-root-list) -c --diff
docformatter $(extra-docformatter-options) $(python-root-list)
pycodestyle $(extra-pycodestyle-options) $(python-root-list)
pydocstyle $(extra-pydocstyle-options) $(python-root-list)
mypy $(extra-mypy-options) $(python-root-list)
pylint $(extra-pylint-options) $(python-root-list)
flake8 $(extra-flake8-options) $(python-root-list)
To identify the version used you must consult the CHANGELOG.md of the image used in the Dockerfile.
The scripts and documentation in this project are released under the MIT License
Contributions are welcome! See CONTRIBUTING.md
Thanks to Ricardo Chaves for writing the python-lint action and giving me a solid starting point for this action.