Skip to content

Commit 7f6c189

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e89238c commit 7f6c189

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1075
-1069
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
---
2-
name: Bug report
3-
about: Create a report to help us improve
4-
title: ''
5-
labels: bug, help wanted
6-
assignees: ''
7-
---
1+
______________________________________________________________________
2+
3+
## name: Bug report about: Create a report to help us improve title: '' labels: bug, help wanted assignees: ''
84

95
## 🐛 Bug
106

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
---
2-
name: Feature request
3-
about: Suggest an idea for this project
4-
title: ''
5-
labels: enhancement, help wanted
6-
assignees: ''
7-
---
1+
______________________________________________________________________
2+
3+
## name: Feature request about: Suggest an idea for this project title: '' labels: enhancement, help wanted assignees: ''
84

95
## 🚀 Feature
106

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,6 @@ _Note: You might want to set a reference to the main repository to fetch/merge f
149149
git remote add upstream https://github.com/nteract/papermill
150150
```
151151

152-
It's possible you will have conflicts between your repository and main. Here, `main` is meant to be synchronized with the `upstream` repository. GitHub has some good [documentation](https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/) on merging pull requests from the command line.
152+
It's possible you will have conflicts between your repository and main. Here, `main` is meant to be synchronized with the `upstream` repository. GitHub has some good [documentation](https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/) on merging pull requests from the command line.
153153

154154
Happy hacking on Papermill!

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pip install papermill
4747
```
4848

4949
For all optional io dependencies, you can specify individual bundles
50-
like `s3`, or `azure` -- or use `all`. To use Black to format parameters you can add as an extra requires \['black'\].
50+
like `s3`, or `azure` -- or use `all`. To use Black to format parameters you can add as an extra requires ['black'].
5151

5252
```{.sourceCode .bash}
5353
pip install papermill[all]
@@ -100,7 +100,7 @@ $ papermill local/input.ipynb s3://bkt/output.ipynb -p alpha 0.6 -p l1_ratio 0.1
100100
```
101101

102102
**NOTE:**
103-
If you use multiple AWS accounts, and you have [properly configured your AWS credentials](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html), then you can specify which account to use by setting the `AWS_PROFILE` environment variable at the command-line. For example:
103+
If you use multiple AWS accounts, and you have [properly configured your AWS credentials](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html), then you can specify which account to use by setting the `AWS_PROFILE` environment variable at the command-line. For example:
104104

105105
```{.sourceCode .bash}
106106
$ AWS_PROFILE=dev_account papermill local/input.ipynb s3://bkt/output.ipynb -p alpha 0.6 -p l1_ratio 0.1
@@ -154,7 +154,7 @@ Papermill supports the following name handlers for input and output paths during
154154

155155
- Local file system: `local`
156156

157-
- HTTP, HTTPS protocol: `http://, https://`
157+
- HTTP, HTTPS protocol: `http://, https://`
158158

159159
- Amazon Web Services: [AWS S3](https://aws.amazon.com/s3/) `s3://`
160160

binder/cli-simple/cli_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
},
5353
"outputs": [],
5454
"source": [
55-
"binder_dir = '..'"
55+
"binder_dir = \"..\""
5656
]
5757
},
5858
{

binder/cli-simple/pm_example.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"import os\n",
6767
"import papermill as pm\n",
6868
"\n",
69-
"binder_dir = '..'"
69+
"binder_dir = \"..\""
7070
]
7171
},
7272
{
@@ -76,9 +76,9 @@
7676
"outputs": [],
7777
"source": [
7878
"result = pm.execute_notebook(\n",
79-
" os.path.join(binder_dir, 'cli-simple', 'simple_input.ipynb'),\n",
80-
" os.path.join(binder_dir, 'cli-simple', 'simple_output.ipynb'),\n",
81-
" parameters={'msg': 'Hello'}\n",
79+
" os.path.join(binder_dir, \"cli-simple\", \"simple_input.ipynb\"),\n",
80+
" os.path.join(binder_dir, \"cli-simple\", \"simple_output.ipynb\"),\n",
81+
" parameters={\"msg\": \"Hello\"},\n",
8282
")"
8383
]
8484
}

binder/cli-simple/simple_output.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"outputs": [],
7070
"source": [
7171
"# Parameters\n",
72-
"msg = \"Hello\"\n"
72+
"msg = \"Hello\""
7373
]
7474
},
7575
{

docs/changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ We made it to our [1.0 milestone goals](https://github.com/nteract/papermill/mil
188188

189189
- Input and output paths can now reference input parameters. `my_nb_{nb_type}.ipynb out_{nb_type}.ipynb -p nb_type test` will substitute values into the paths passed in with python format application patterns.
190190
- `read_notebook`, `read_notebooks`, `record`, and `display` api functions are now removed.
191-
- \[upstream\] ipywidgets are now supported. See [nbconvert docs](https://nbconvert.readthedocs.io/en/latest/execute_api.html#widget-state) for details.
192-
- \[upstream\] notebook executions which run out of memory no longer hang indefinitely when the kernel dies.
191+
- [upstream] ipywidgets are now supported. See [nbconvert docs](https://nbconvert.readthedocs.io/en/latest/execute_api.html#widget-state) for details.
192+
- [upstream] notebook executions which run out of memory no longer hang indefinitely when the kernel dies.
193193

194194
## 0.19.1
195195

papermill/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from papermill.cli import papermill
22

3-
if __name__ == '__main__':
3+
if __name__ == "__main__":
44
papermill()

papermill/abs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utilities for working with Azure blob storage"""
2+
23
import io
34
import re
45

@@ -49,7 +50,7 @@ def read(self, url):
4950
params = self._split_url(url)
5051
output_stream = io.BytesIO()
5152
blob_service_client = self._blob_service_client(params["account"], params["sas_token"])
52-
blob_client = blob_service_client.get_blob_client(params['container'], params['blob'])
53+
blob_client = blob_service_client.get_blob_client(params["container"], params["blob"])
5354
blob_client.download_blob().readinto(output_stream)
5455
output_stream.seek(0)
5556
return [line.decode("utf-8") for line in output_stream]
@@ -65,5 +66,5 @@ def write(self, buf, url):
6566
"""Write buffer to storage at a given url"""
6667
params = self._split_url(url)
6768
blob_service_client = self._blob_service_client(params["account"], params["sas_token"])
68-
blob_client = blob_service_client.get_blob_client(params['container'], params['blob'])
69+
blob_client = blob_service_client.get_blob_client(params["container"], params["blob"])
6970
blob_client.upload_blob(data=buf, overwrite=True)

0 commit comments

Comments
 (0)