-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build/deps] Add yapf to py3-libs "wedge"
So we can use a stable version. But this technically isn't done yet! Because we're still downloading on demand. - We don't have a real WEDGE yet - I think this is because we don't have a mechanism for the MyPy repo dep to work in a container - However, here we're building outside of a container, so we don't have to worry about mounting - TODO: try 'python3 -m pip download' - Add build/deps.sh rm-oils-crap - to let people start from scratch; it's just ~/wedge and /wedge for now - Unconditionally set PATH / PYTHONPATH, to fix bug when running build/deps.sh install-wedges from scratch - Move formatting to devtools/format.sh
- Loading branch information
Andy C
committed
Jul 27, 2023
1 parent
b9a5bf7
commit a43bc5d
Showing
5 changed files
with
47 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Run yapf formatter; it's installed in ~/wedge/ by build/deps.sh | ||
# | ||
# Usage: | ||
# test/format.sh <function name> | ||
|
||
. build/dev-shell.sh # python3 in $PATH | ||
|
||
yapf-version() { | ||
python3 -m yapf --version | ||
} | ||
|
||
# For now, run yapf on specific files. TODO: could query git for the files | ||
# that are are different from master branch, and run it on those. | ||
yapf-files() { | ||
python3 -m yapf -i "$@" | ||
} | ||
|
||
"$@" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters