Skip to content

Commit b5dba92

Browse files
committed
Update scripts now that .pylintrc is at the top level
No need to provide an explicit `--rcfile` option.
1 parent 3a1092f commit b5dba92

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

check/pylint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515

1616
################################################################################
17-
# Runs pylint on the repository using a preconfigured .pylintrc file.
17+
# Runs pylint from the top level of the project.
1818
#
1919
# Usage:
2020
# check/pylint [--flags]
@@ -24,4 +24,4 @@
2424
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" || exit 1
2525
cd "$(git rev-parse --show-toplevel)" || exit 1
2626

27-
pylint --rcfile=dev_tools/conf/.pylintrc "$@" src dev_tools
27+
pylint "$@" src dev_tools

check/pylint-changed-files

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# Summary: run pylint on changed files using a preconfigured .pylintrc file.
17+
# Summary: run pylint on changed files from the top level of the project.
1818
#
1919
# Usage:
2020
# check/pylint-changed-files [BASE_REVISION]
@@ -81,4 +81,4 @@ echo "Found ${num_changed} lintable files associated with changes." >&2
8181
if [ "${num_changed}" -eq 0 ]; then
8282
exit 0
8383
fi
84-
env PYTHONPATH=dev_tools pylint --jobs=0 --rcfile=dev_tools/conf/.pylintrc "${changed[@]}"
84+
env PYTHONPATH=dev_tools pylint --jobs=0 "${changed[@]}"

0 commit comments

Comments
 (0)