From ddf78d56df7decbf241b52be0e6f68ebfe6cb0db Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Fri, 25 Feb 2022 21:00:14 +0000 Subject: [PATCH] Specify versions of hacking and black --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7b0f1295..a16d372bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: if [ "${{ matrix.os }}" != "windows-latest" ]; then conda install -q -y help2man fi - pip install hacking pytest 'pytest-qt<4' + pip install pytest 'pytest-qt<4' - name: Install main shell: bash -l {0} @@ -84,13 +84,18 @@ jobs: shell: bash -l {0} if: matrix.os != 'windows-latest' run: | + if [ "${{ matrix.python-version }}" == "2.7" ]; then + pip install hacking==2.0.0 + else + pip install hacking==4.1.0 + fi flake8 . - name: Black shell: bash -l {0} if: matrix.os != 'windows-latest' && matrix.python-version != '2.7' run: | - pip install black + pip install black==22.1.0 black --line-length 79 --check --diff labelme - name: Test with pytest