Use alpine packaged black

Closes #1554
This commit is contained in:
Ben V. Brown
2023-02-04 09:30:05 +11:00
parent bb76dfeff6
commit e19e1a066d
2 changed files with 4 additions and 4 deletions

View File

@@ -140,14 +140,14 @@ jobs:
steps: steps:
- name: deps - name: deps
run: apk add --no-cache python3 py3-pip make git run: apk add --no-cache python3 py3-pip make git black
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- name: install black - name: install black
run: python3 -m pip install bdflib black flake8 run: python3 -m pip install bdflib flake8
- name: Check formatting with clang-format - name: Check formatting with clang-format
run: cd source && make clean && make check-style run: cd source && make clean && make check-style

View File

@@ -9,11 +9,11 @@ WORKDIR /build
# musl-dev is required for the multi lang firmwares # musl-dev is required for the multi lang firmwares
# clang is required for clang-format (for dev) # clang is required for clang-format (for dev)
RUN apk add --no-cache gcc-riscv-none-elf gcc-arm-none-eabi newlib-riscv-none-elf newlib-arm-none-eabi findutils python3 py3-pip make git musl-dev clang bash clang-extra-tools RUN apk add --no-cache gcc-riscv-none-elf gcc-arm-none-eabi newlib-riscv-none-elf newlib-arm-none-eabi findutils python3 py3-pip black make git musl-dev clang bash clang-extra-tools
# Install Python3 packages # Install Python3 packages
RUN python3 -m pip install bdflib black RUN python3 -m pip install bdflib
# Git trust # Git trust
RUN git config --global --add safe.directory /build/source RUN git config --global --add safe.directory /build/source