mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 12:46:41 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
1a343cfaf4
15
Makefile
15
Makefile
@ -465,3 +465,18 @@ distclean_userspace: clean
|
|||||||
rm -f $(QMK_USERSPACE)/*.bin $(QMK_USERSPACE)/*.hex $(QMK_USERSPACE)/*.uf2
|
rm -f $(QMK_USERSPACE)/*.bin $(QMK_USERSPACE)/*.hex $(QMK_USERSPACE)/*.uf2
|
||||||
echo 'done.'
|
echo 'done.'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Extra targets for formatting and/or pytest, running within the qmk/qmk_cli container to match GHA.
|
||||||
|
CONTAINER_PREAMBLE := export HOME="/tmp"; export PATH="/tmp/.local/bin:\$$PATH"; python3 -m pip install --upgrade pip; python3 -m pip install -r requirements-dev.txt
|
||||||
|
|
||||||
|
.PHONY: format-core
|
||||||
|
format-core:
|
||||||
|
RUNTIME=docker ./util/docker_cmd.sh bash -lic "$(CONTAINER_PREAMBLE); qmk format-c --core-only -a && qmk format-python -a"
|
||||||
|
|
||||||
|
.PHONY: pytest
|
||||||
|
pytest:
|
||||||
|
RUNTIME=docker ./util/docker_cmd.sh bash -lic "$(CONTAINER_PREAMBLE); qmk pytest"
|
||||||
|
|
||||||
|
.PHONY: format-and-pytest
|
||||||
|
format-and-pytest:
|
||||||
|
RUNTIME=docker ./util/docker_cmd.sh bash -lic "$(CONTAINER_PREAMBLE); qmk format-c --core-only -a && qmk format-python -a && qmk pytest"
|
||||||
|
Loading…
Reference in New Issue
Block a user