Skip to content

Commit ed0f742

Browse files
committed
Always use black==24.2.0 in CI linting
1 parent 043ce4a commit ed0f742

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/development.yaml

+18-3
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,28 @@ jobs:
9090
run: |
9191
export HOST_UID=$(id -u)
9292
docker-compose -f LNX-docker-compose.yml up --build --exit-code-from app
93+
lint:
94+
runs-on: ubuntu-latest
95+
strategy:
96+
matrix:
97+
py_ver: ["3.11"]
98+
steps:
99+
- uses: actions/checkout@v3
100+
- name: Set up Python ${{matrix.py_ver}}
101+
uses: actions/setup-python@v4
102+
with:
103+
python-version: ${{matrix.py_ver}}
104+
- name: Install dependencies
105+
run: |
106+
python -m pip install --upgrade pip
107+
pip install flake8 black==24.2.0
108+
- name: Run syntax tests
109+
run: flake8 datajoint --count --select=E9,F63,F7,F82 --show-source --statistics
93110
- name: Run style tests
94111
run: |
95112
flake8 --ignore=E203,E722,W503 datajoint \
96113
--count --max-complexity=62 --max-line-length=127 --statistics
97-
black datajoint --check -v
98-
black tests --check -v
99-
black tests_old --check -v
114+
black --required-version '24.2.0' --check -v datajoint tests tests_old
100115
codespell:
101116
name: Check for spelling errors
102117
permissions:

0 commit comments

Comments
 (0)