Skip to content

Conversation

@csegarragonz
Copy link
Collaborator

In this PR I update the code-formatting task to take an optional parameter cwd indicating what directory to format code in.

This is useful when working on one submodule (e.g. faabric or CPP) checked-out as a submodule of Faasm (and not as a standalone repo). In this case, the native formatting (in faabric or CPP) won't work, as the mounted .git directory (used to run git ls-files) points to a non-existant parent module.

Now, we can run: inv format-code --cwd ./faabric from Faasm's CLI container to fix this issue.

@csegarragonz csegarragonz marked this pull request as ready for review July 26, 2023 09:57
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #778 (6668020) into main (9284f48) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #778      +/-   ##
==========================================
- Coverage   67.47%   67.40%   -0.07%     
==========================================
  Files          69       69              
  Lines        7760     7760              
==========================================
- Hits         5236     5231       -5     
- Misses       2524     2529       +5     

see 2 files with indirect coverage changes

@csegarragonz csegarragonz merged commit c1b1073 into main Jul 26, 2023
@csegarragonz csegarragonz deleted the format-dir branch July 26, 2023 10:48
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.

2 participants