Skip to content

Commit 5b66895

Browse files
lambertacopybara-github
authored andcommitted
OSS nblint fixes
Install and usage: $ python3 -m pip install -U [--user] git+https://github.com/tensorflow/docs $ python3 -m tensorflow_docs.tools.nblint [options] notebook.ipynb PiperOrigin-RevId: 313595873
1 parent 9a04bc0 commit 5b66895

File tree

9 files changed

+16
-1
lines changed

9 files changed

+16
-1
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
REQUIRED_PKGS = [
3333
'astor',
3434
'absl-py',
35+
'protobuf',
3536
'pyyaml',
3637
]
3738

File renamed without changes.

tools/nblint/__main__.py renamed to tools/tensorflow_docs/tools/nblint/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
r"""Check notebook conformance with documentation styles.
1818
1919
Install the tensorflow-docs package:
20-
$ pip3 install -U [--user] git+https://github.com/tensorflow/docs
20+
$ python3 -m pip install -U [--user] git+https://github.com/tensorflow/docs
2121
2222
Usage:
2323
$ python3 -m tensorflow_docs.tools.nblint [options] notebook.ipynb [...]
File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================

0 commit comments

Comments
 (0)