Skip to content

make: split out clippy and format targets#528

Open
bradjc wants to merge 1 commit intomasterfrom
make-targets-clippy-format
Open

make: split out clippy and format targets#528
bradjc wants to merge 1 commit intomasterfrom
make-targets-clippy-format

Conversation

@bradjc
Copy link
Copy Markdown
Contributor

@bradjc bradjc commented Jan 11, 2024

Running the tests take a while and sometimes it is helpful to just be able to run clippy quickly.

Running the tests take a while and sometimes it is helpful to just be
able to run clippy quickly.
Comment thread Makefile
@echo "Run 'make flash-<board> EXAMPLE=<>' to flash EXAMPLE to a tockloader-supported board."
@echo "Run 'make qemu-example EXAMPLE=<>' to run EXAMPLE in QEMU"
@echo "Run 'make test' to test any local changes you have made"
@echo "Run 'make format' to format any local changes you have made"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't accurate -- make format checks formatting, but does not change formatting.

I don't want make test to make edits, so we either need to just update the documentation, or have separate actions for "format the code" and "check formatting".

Comment thread Makefile

.PHONY: format
format:
LIBTOCK_PLATFORM=nrf52 cargo fmt --all -- --check
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clippy and format actions need to depend on toolchain. In retrospect, test should explicitly depend on toolchain -- it currently transitively depends on it through examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants