Will update to newer version later, after testing that this works and only if needed. Might be rolled back if continuous builds fail after merging. Added a lot of errors to allow-list, will organize fix-it to remove them. Removes the `W9015:missing-param-doc` warning type added in #45427 as TF is not ready for that yet. Part of the work for #46046, #43040. Unblocks #46075 PiperOrigin-RevId: 353741692 Change-Id: I542e3f28253afada12b595863e571c058f7228b9
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
# ==============================================================================
|
|
set -e
|
|
|
|
# Install latest bazel
|
|
source tensorflow/tools/ci_build/release/common.sh
|
|
install_bazelisk
|
|
which bazel
|
|
|
|
# We need py3 lint
|
|
sudo python3.8 -m pip install pep8
|
|
|
|
# Install pylint
|
|
sudo python3.8 -m pip install setuptools --upgrade
|
|
sudo python3.8 -m pip install pylint==2.4.4
|
|
python3.8 -m pylint --version
|
|
|
|
# Run tensorflow sanity checks.
|
|
tensorflow/tools/ci_build/ci_sanity.sh
|