Skip to content

Commit 45fe45e

Browse files
committed
Fix lint workflow: use Python 3.9 and pinned black from [test] extras
black==20.8b1 (pinned in setup.py) is incompatible with click>=8.1 on Python 3.11+. Use Python 3.9 for linting (matching original workflow) and rely on the pinned versions from [test] extras instead of installing black/flake8/isort separately with --upgrade.
1 parent b8738f2 commit 45fe45e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/check-formatting.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: "3.11"
18+
python-version: "3.9"
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip setuptools wheel
2222
python setup.py install_egg_info
2323
pip install -e .[test]
24-
pip install black flake8 isort --upgrade
2524
- name: Check code format with black and isort
2625
run: |
2726
make lint

0 commit comments

Comments
 (0)