Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion check/all
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

# Parse arguments.
Expand Down
2 changes: 1 addition & 1 deletion check/asv_run
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

export ASV_PYTHONPATH="$(git rev-parse --show-toplevel)/examples"
Expand Down
2 changes: 1 addition & 1 deletion check/build-changed-protos
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

# Figure out which revision to compare against.
Expand Down
2 changes: 1 addition & 1 deletion check/doctest
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

source dev_tools/pypath
Expand Down
2 changes: 1 addition & 1 deletion check/format-incremental
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"


Expand Down
2 changes: 1 addition & 1 deletion check/mypy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

config_file='mypy.ini'
Expand Down
2 changes: 1 addition & 1 deletion check/nbformat
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ for arg in "$@"; do
done

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

pip show tensorflow-docs > /dev/null || exit 1
Expand Down
2 changes: 1 addition & 1 deletion check/npm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

npm --prefix 'cirq-web/cirq_ts' "$@"
2 changes: 1 addition & 1 deletion check/npx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

cd 'cirq-web/cirq_ts'
Expand Down
2 changes: 1 addition & 1 deletion check/pylint
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

CIRQ_MODULES=$(env PYTHONPATH=. python dev_tools/modules.py list --mode package-path)
Expand Down
2 changes: 1 addition & 1 deletion check/pylint-changed-files
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

# Figure out which revision to compare against.
Expand Down
2 changes: 1 addition & 1 deletion check/pytest
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

PYTEST_ARGS=()
Expand Down
2 changes: 1 addition & 1 deletion check/pytest-changed-files
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

# Figure out which branch to compare against.
Expand Down
2 changes: 1 addition & 1 deletion check/ts-build
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

check/npx webpack --mode production "$@"
2 changes: 1 addition & 1 deletion check/ts-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

check/npm run coverage "$@"
2 changes: 1 addition & 1 deletion check/ts-lint
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

check/npm run lint "$@"
2 changes: 1 addition & 1 deletion check/ts-lint-and-format
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

check/npm run fix "$@"
2 changes: 1 addition & 1 deletion check/ts-test
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

check/npm run test "$@"
2 changes: 1 addition & 1 deletion check/ts-test-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
################################################################################

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

check/npm run test-e2e "$@"
2 changes: 1 addition & 1 deletion dev_tools/build-protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set -e
trap "{ echo -e '\033[31mFAILED\033[0m'; }" ERR

# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(git rev-parse --show-toplevel)"

cd $(pwd)/cirq-google
Expand Down
2 changes: 1 addition & 1 deletion dev_tools/pr_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@


# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(dirname "${BASH_SOURCE[0]}")"
repo_dir=$(git rev-parse --show-toplevel)
cd "${repo_dir}"

Expand Down