Pin black to 23.11.* to avoid picking unwanted style changes.
Latest successful black
run locally used 23.11.*
line:
docker run \
--platform linux/x86_64 \
--memory="8g" \
--cpus="5.0" \
--rm -it \
--volume .:/opt/airflow-dags \
--workdir /opt/airflow-dags \
conda_env_lint \
bash -c -p "source /opt/miniconda/bin/activate && conda activate airflow && flake8 && mypy && black --version"
Success: no issues found in 234 source files
black, 23.11.0 (compiled: yes)
Python (CPython) 3.10.9
So, let's pin to that to avoid picking style changes in https://github.com/psf/black/blob/main/CHANGES.md#2410 that are breaking the build.