-
-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bash update * delete old * udp2 * upd 3 * infer fix * tests update 4 * codestyle * tests update 5 - apex support * simplified * upd 7 * codestyle * fix * fox * simplified * s * no segmentationns * simplified gan * gan without apex * fix * fix 2 * gan fix * bash fix * simplified * + * rl fix
- Loading branch information
Showing
70 changed files
with
870 additions
and
662 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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Cause the script to exit if a single command fails | ||
set -eo pipefail -v | ||
|
||
# this stops git rev-parse from failing if we run this from the .git directory | ||
builtin cd "$(dirname "${BASH_SOURCE:-$0}")" | ||
|
||
ROOT="$(git rev-parse --show-toplevel)" | ||
builtin cd "$ROOT" || exit 1 | ||
|
||
|
||
flake8 "$@" |
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,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Cause the script to exit if a single command fails | ||
set -eo pipefail -v | ||
|
||
# this stops git rev-parse from failing if we run this from the .git directory | ||
builtin cd "$(dirname "${BASH_SOURCE:-$0}")" | ||
|
||
ROOT="$(git rev-parse --show-toplevel)" | ||
builtin cd "$ROOT" || exit 1 | ||
|
||
|
||
YAPF_FLAGS=( | ||
'--style' "$ROOT/setup.cfg" | ||
'--recursive' | ||
'--parallel' | ||
) | ||
|
||
YAPF_EXCLUDES=( | ||
'--exclude' 'docker/*' | ||
) | ||
|
||
# Format specified files | ||
format() { | ||
yapf --in-place "${YAPF_FLAGS[@]}" -- "$@" | ||
} | ||
|
||
# Format all files, and print the diff to stdout for travis. | ||
format_all() { | ||
yapf --diff "${YAPF_FLAGS[@]}" "${YAPF_EXCLUDES[@]}" ./**/*.py | ||
} | ||
|
||
format_all_in_place() { | ||
yapf --in-place "${YAPF_FLAGS[@]}" "${YAPF_EXCLUDES[@]}" ./**/*.py | ||
} | ||
|
||
# This flag formats individual files. --files *must* be the first command line | ||
# arg to use this option. | ||
if [[ "$1" == '--files' ]]; then | ||
format "${@:2}" | ||
# If `--all` is passed, then any further arguments are ignored and the | ||
# entire python directory is formatted. | ||
elif [[ "$1" == '--all' ]]; then | ||
format_all | ||
elif [[ "$1" == '--all-in-place' ]]; then | ||
format_all_in_place | ||
else | ||
# Format only the files that changed in last commit. | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.