Skip to content

Commit

Permalink
Apply Black style, isort
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Mar 26, 2021
1 parent 8c81bd4 commit 1d324af
Show file tree
Hide file tree
Showing 48 changed files with 2,552 additions and 2,529 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade setuptools pip
pip install --upgrade --upgrade-strategy eager -e .[test] pytest-cov codecov 'coverage<5'
pip install --upgrade --upgrade-strategy eager -e .[test] pytest-cov codecov 'coverage<5' black isort
pip freeze
- name: Check style
run: |
black jupyter_client --check --line-length 100
isort jupyter_client --check --profile black
- name: Check types
run: mypy jupyter_client/manager.py jupyter_client/multikernelmanager.py jupyter_client/client.py jupyter_client/blocking/client.py jupyter_client/asynchronous/client.py jupyter_client/channels.py jupyter_client/session.py jupyter_client/adapter.py jupyter_client/connect.py jupyter_client/consoleapp.py jupyter_client/jsonutil.py jupyter_client/kernelapp.py jupyter_client/launcher.py
- name: Run the tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://github.com/jupyter/jupyter_client/workflows/CI/badge.svg)](https://github.com/jupyter/jupyter_client/actions)
[![Code Health](https://landscape.io/github/jupyter/jupyter_client/master/landscape.svg?style=flat)](https://landscape.io/github/jupyter/jupyter_client/master)

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

`jupyter_client` contains the reference implementation of the [Jupyter protocol][].
It also provides client and kernel management APIs for working with kernels.
Expand Down
12 changes: 6 additions & 6 deletions jupyter_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Client-side implementations of the Jupyter protocol"""

from ._version import version_info, __version__, protocol_version_info, protocol_version
from ._version import __version__, protocol_version, protocol_version_info, version_info
from .asynchronous import AsyncKernelClient
from .blocking import BlockingKernelClient
from .client import KernelClient
from .connect import *
from .launcher import *
from .client import KernelClient
from .manager import KernelManager, AsyncKernelManager, run_kernel
from .blocking import BlockingKernelClient
from .asynchronous import AsyncKernelClient
from .multikernelmanager import MultiKernelManager, AsyncMultiKernelManager
from .manager import AsyncKernelManager, KernelManager, run_kernel
from .multikernelmanager import AsyncMultiKernelManager, MultiKernelManager
Loading

0 comments on commit 1d324af

Please sign in to comment.