Open turian opened 3 years ago
The black version is 19.10b0
What version of action are you using? Depending on the version you use, you may be experiencing this problem. At first it was solved in Isort 5. What version of Isort are you using?
Can you send me your yml
?
We are having the same issue with black, not using isort. This is our yml:
name: Lint
on:
pull_request:
types: ["opened", "edited", "reopened", "synchronize"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: python-lint
uses: ricardochaves/python-lint@v1.1.0
with:
use-pylint: false
use-pycodestyle: false
use-flake8: true
use-black: true
use-mypy: false
use-isort: false
extra-flake8-options: "--max-line-length=99"
extra-black-options: "--line-length=99"
Hi @alvarovn , how are u? Can you try the version python-lint@v1.3.0
, pls?
I just tried and have the same issue.
Fedora 33 black
version is 20.8b1
, which has different results from 19.10b0
Since black results are inconsistent between versions, it would be helpful to be able to choose the version.
I put an image with new versions of the libs. I also added how we can test the action locally in README.md. Could you try and post the results here, please?
@ricardochaves I haven't been able to replicate the bug, I'll let you know if I do.
BTW, you should consider bumping the version of black again. There are more fixes in the latest: https://github.com/psf/black/issues/2199
Are there any plans for the next bump of black version? The version used by this action does not support Python 3.9, i.e. the action fails with a matrix containing Python 3.9 because switch -t py39
is invalid. Black 21.7b0 seems to include py39 as an available option.
What version of black does this use? Is it the latest?
On github with this docker I get
On my laptop I have the latest pypi black and get