diff --git a/.github/workflows/all-lints.yml b/.github/workflows/all-lints.yml index ddddb32..388db4b 100644 --- a/.github/workflows/all-lints.yml +++ b/.github/workflows/all-lints.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: ricardochaves/python-lint@v1.1.0 + - uses: ricardochaves/python-lint@master with: python-root-list: "tests" diff --git a/.github/workflows/with-isort-5-lint.yml b/.github/workflows/with-isort-5-lint.yml deleted file mode 100644 index cc2e5f0..0000000 --- a/.github/workflows/with-isort-5-lint.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: with-isort-5-lint - -on: [push] - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - uses: ricardochaves/python-lint@v1.2.0 - with: - python-root-list: "tests" - use-pylint: false diff --git a/.github/workflows/without-isort-5-lint.yml b/.github/workflows/without-isort-5-lint.yml deleted file mode 100644 index c38f5ce..0000000 --- a/.github/workflows/without-isort-5-lint.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: without-isort-5-lint - -on: [push] - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - uses: ricardochaves/python-lint@v1.1.0 - with: - python-root-list: "tests" - use-isort: false diff --git a/Dockerfile b/Dockerfile index 363a38e..9d29f55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Container image that runs your code -FROM ricardobchaves6/python-lint-image:1.2.0 +FROM ricardobchaves6/python-lint-image:1.3.0 # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh diff --git a/README.md b/README.md index 27764e1..58b7687 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,7 @@ # python-lint -## Status -
- -> [Pylint](https://www.pylint.org/) is not compatible with [Isort 5](https://github.com/timothycrosley/isort). So if you use all enabled lints, it fails in version 1.2.0 - -## Limitations - -You can't use Isort 5 with Pylint. - -If you wanna use Pylint with isort 4 use the `v1.1.0` version. - -If you wanna use Isort 5 without pylint use the version `v1.2.0` and disable pylint + ## About @@ -37,7 +23,7 @@ Basic: ```yml steps: - uses: actions/checkout@v1 - - uses: ricardochaves/python-lint@v1.2.0 + - uses: ricardochaves/python-lint@v1.3.0 ``` Options: @@ -45,7 +31,7 @@ Options: ```yml steps: - uses: actions/checkout@v1 - - uses: ricardochaves/python-lint@v1.2.0 + - uses: ricardochaves/python-lint@v1.3.0 with: python-root-list: "python_alelo tests" use-pylint: false @@ -73,7 +59,7 @@ flake8 $(extra-flake8-options) $(python-root-list) black --check $(extra-black-options) $(python-root-list) -mypy $(extra-mypy-options) $(python-root-list)" +mypy $(extra-mypy-options) $(python-root-list) isort $(extra-isort-options) $(python-root-list) -c --diff ```