Skip to content

Commit 4be0283

Browse files
authored
Merge pull request #644 from Carreau/velin
Build docs only on ubuntu : add jobs to check docstring formatting.
2 parents 6dbb5af + 6f85354 commit 4be0283

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ jobs:
5353
pip freeze
5454
pip check
5555
- name: Run the tests
56-
timeout-minutes: 30
56+
timeout-minutes: 10
5757
run: |
5858
pytest ipykernel -vv -s --cov ipykernel --cov-branch --cov-report term-missing:skip-covered --durations 10
5959
- name: Build the docs
60+
if: ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.9'}}
6061
run: |
6162
cd docs
6263
pip install -r requirements.txt
@@ -69,3 +70,43 @@ jobs:
6970
- name: Coverage
7071
run: |
7172
codecov
73+
check_docstrings:
74+
runs-on: ${{ matrix.os }}-latest
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
os: [ubuntu]
79+
python-version: [ '3.9' ]
80+
exclude:
81+
- os: windows
82+
python-version: pypy3
83+
steps:
84+
- name: Checkout
85+
uses: actions/checkout@v1
86+
- name: Install Python ${{ matrix.python-version }}
87+
uses: actions/setup-python@v1
88+
with:
89+
python-version: ${{ matrix.python-version }}
90+
architecture: 'x64'
91+
- name: Upgrade packaging dependencies
92+
run: |
93+
pip install --upgrade pip setuptools wheel --user
94+
- name: Get pip cache dir
95+
id: pip-cache
96+
run: |
97+
echo "::set-output name=dir::$(pip cache dir)"
98+
- name: Cache pip
99+
uses: actions/cache@v1
100+
with:
101+
path: ${{ steps.pip-cache.outputs.dir }}
102+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
103+
restore-keys: |
104+
${{ runner.os }}-pip-${{ matrix.python-version }}-
105+
${{ runner.os }}-pip-
106+
- name: Install the Python dependencies
107+
run: |
108+
pip install --pre --upgrade --upgrade-strategy=eager .
109+
pip install velin
110+
- name: Check Docstrings
111+
run: |
112+
velin . --check --compact

ipykernel/kernelspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
RESOURCES = pjoin(os.path.dirname(__file__), 'resources')
2222

2323

24-
def make_ipkernel_cmd(mod='ipykernel_launcher', executable=None, extra_arguments=None, **kw):
24+
def make_ipkernel_cmd(mod="ipykernel_launcher", executable=None, extra_arguments=None):
2525
"""Build Popen command list for launching an IPython kernel.
2626
2727
Parameters

ipykernel/pickleutil.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ def __init__(self, obj, keys=[], hook=None):
128128
hook : callable (optional)
129129
An optional extra callable,
130130
which can do additional processing of the uncanned object.
131+
132+
Notes
133+
-----
131134
large data may be offloaded into the buffers list,
132135
used for zero-copy transfers.
133136
"""

0 commit comments

Comments
 (0)