Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5dfe8d9
black: add pyproject.toml
wchargin Nov 22, 2019
b8027f5
black: reformat directory tensorboard/examples/plugins/example_basic/…
tensorboard-gardener Dec 14, 2019
2556bc8
black: reformat directory tensorboard/examples/plugins/example_basic
tensorboard-gardener Dec 14, 2019
bc9512e
black: reformat directory tensorboard/plugins/interactive_inference
tensorboard-gardener Dec 14, 2019
85fdd5b
black: reformat directory tensorboard/backend/event_processing
tensorboard-gardener Dec 14, 2019
83bd6c7
black: reformat directory tensorboard/plugins/custom_scalar
tensorboard-gardener Dec 14, 2019
6fa453c
black: reformat directory tensorboard/plugins/distribution
tensorboard-gardener Dec 14, 2019
1c62d98
black: reformat directory tensorboard/plugins/debugger_v2
tensorboard-gardener Dec 14, 2019
6266916
black: reformat directory tensorboard/plugins/histogram
tensorboard-gardener Dec 14, 2019
7ef1382
black: reformat directory tensorboard/plugins/projector
tensorboard-gardener Dec 14, 2019
6dcd54d
black: reformat directory tensorboard/plugins/beholder
tensorboard-gardener Dec 14, 2019
88def43
black: reformat directory tensorboard/plugins/debugger
tensorboard-gardener Dec 14, 2019
e0d2460
black: reformat directory tensorboard/plugins/pr_curve
tensorboard-gardener Dec 14, 2019
e7801f0
black: reformat directory tensorboard/functionaltests
tensorboard-gardener Dec 14, 2019
7cbd738
black: reformat directory tensorboard/plugins/hparams
tensorboard-gardener Dec 14, 2019
cd6c3d6
black: reformat directory tensorboard/plugins/profile
tensorboard-gardener Dec 14, 2019
ae16d8e
black: reformat directory tensorboard/plugins/scalar
tensorboard-gardener Dec 14, 2019
84ecb67
black: reformat directory tensorboard/plugins/audio
tensorboard-gardener Dec 14, 2019
3b6712a
black: reformat directory tensorboard/plugins/graph
tensorboard-gardener Dec 14, 2019
e734864
black: reformat directory tensorboard/plugins/image
tensorboard-gardener Dec 14, 2019
867fe60
black: reformat directory tensorboard/plugins/core
tensorboard-gardener Dec 14, 2019
36d3780
black: reformat directory tensorboard/plugins/mesh
tensorboard-gardener Dec 14, 2019
31f7f76
black: reformat directory tensorboard/plugins/text
tensorboard-gardener Dec 14, 2019
dd938d9
black: reformat directory tensorboard/pip_package
tensorboard-gardener Dec 14, 2019
cf82e96
black: reformat directory tensorboard/uploader
tensorboard-gardener Dec 14, 2019
0e83331
black: reformat directory tensorboard/backend
tensorboard-gardener Dec 14, 2019
6242071
black: reformat directory tensorboard/plugins
tensorboard-gardener Dec 14, 2019
81bac83
black: reformat directory tensorboard/scripts
tensorboard-gardener Dec 14, 2019
f5fdf79
black: reformat directory tensorboard/summary
tensorboard-gardener Dec 14, 2019
c89b02b
black: reformat directory tensorboard/compat
tensorboard-gardener Dec 14, 2019
b311a64
black: reformat directory tensorboard/tools
tensorboard-gardener Dec 14, 2019
436ce40
black: reformat directory tensorboard/data
tensorboard-gardener Dec 14, 2019
5485dd9
black: reformat directory tensorboard/defs
tensorboard-gardener Dec 14, 2019
e694e4d
black: reformat directory tensorboard/util
tensorboard-gardener Dec 14, 2019
4070c2a
black: reformat directory tensorboard
tensorboard-gardener Dec 14, 2019
abd01e8
ci: check lint with Black
wchargin Nov 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
dist: trusty
language: python
python:
- "2.7"
- "3.6"
- "2.7"

branches:
only:
Expand Down Expand Up @@ -46,12 +46,14 @@ before_install:

install:
- elapsed "install"
- "PY3=\"$(python -c 'if __import__(\"sys\").version_info[0] > 2: print(1)')\""
# Older versions of Pip sometimes resolve specifiers like `tf-nightly`
# to versions other than the most recent(!).
- pip install -U pip
# Lint check deps.
- pip install flake8==3.7.8
- pip install yamllint==1.17.0
- if [ -n "${PY3}" ]; then pip install black==19.10b0; fi
# TensorBoard deps.
- pip install futures==3.1.1
- pip install grpcio==1.24.3
Expand Down Expand Up @@ -87,6 +89,8 @@ before_script:
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# Lint frontend code
- yarn lint
# Lint backend code
- if [ -n "${PY3}" ]; then black --check .; fi
# Lint .yaml docs files. Use '# yamllint disable-line rule:foo' to suppress.
- yamllint -c docs/.yamllint docs docs/.yamllint
# Make sure that IPython notebooks have valid Markdown.
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.black]
line-length = 80
target-version = ["py27", "py36", "py37", "py38"]
36 changes: 19 additions & 17 deletions tensorboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""TensorBoard is a webapp for understanding TensorFlow runs and graphs.
"""
"""TensorBoard is a webapp for understanding TensorFlow runs and graphs."""

from __future__ import absolute_import
from __future__ import division
Expand Down Expand Up @@ -67,33 +66,36 @@
# additional discussion.


@lazy.lazy_load('tensorboard.notebook')
@lazy.lazy_load("tensorboard.notebook")
def notebook():
import importlib
return importlib.import_module('tensorboard.notebook')
import importlib

return importlib.import_module("tensorboard.notebook")

@lazy.lazy_load('tensorboard.program')

@lazy.lazy_load("tensorboard.program")
def program():
import importlib
return importlib.import_module('tensorboard.program')
import importlib

return importlib.import_module("tensorboard.program")


@lazy.lazy_load('tensorboard.summary')
@lazy.lazy_load("tensorboard.summary")
def summary():
import importlib
return importlib.import_module('tensorboard.summary')
import importlib

return importlib.import_module("tensorboard.summary")


def load_ipython_extension(ipython):
"""IPython API entry point.
"""IPython API entry point.

Only intended to be called by the IPython runtime.
Only intended to be called by the IPython runtime.

See:
https://ipython.readthedocs.io/en/stable/config/extensions/index.html
"""
notebook._load_ipython_extension(ipython)
See:
https://ipython.readthedocs.io/en/stable/config/extensions/index.html
"""
notebook._load_ipython_extension(ipython)


__version__ = version.VERSION
4 changes: 2 additions & 2 deletions tensorboard/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@

del _main

if __name__ == '__main__':
run_main()
if __name__ == "__main__":
run_main()
Loading