Skip to content

Commit e07baad

Browse files
authored
v0.3.6 (#401)
1 parent 3cbe41b commit e07baad

File tree

8 files changed

+15
-14
lines changed

8 files changed

+15
-14
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ All done! ✨ 🍰 ✨
7575
Sort your imports with [isort](https://timothycrosley.github.io/isort/):
7676

7777
```console
78-
$ nbqa isort my_notebook.ipynb --treat-comment-as-code '# %%' --nbqa-mutate
78+
$ nbqa isort my_notebook.ipynb --nbqa-mutate
7979
Fixing my_notebook.ipynb
8080
```
8181

@@ -108,15 +108,14 @@ for details)
108108
pyupgrade = 1
109109

110110
[tool.nbqa.addopts]
111-
isort = ["--treat-comment-as-code", "# %%"]
112111
pyupgrade = ["--py36-plus"]
113112
```
114113

115114
2. Put this in your `.pre-commit-config.yaml` file (see [usage as pre-commit hook](https://nbqa.readthedocs.io/en/latest/pre-commit.html))
116115

117116
```yaml
118117
- repo: https://github.com/nbQA-dev/nbQA
119-
rev: 0.3.5
118+
rev: 0.3.6
120119
hooks:
121120
- id: nbqa-black
122121
- id: nbqa-pyupgrade

docs/configuration.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ or you can put the following in your :code:`pyproject.toml` file
2222
flake8 = [
2323
"--ignore=W503"
2424
]
25-
isort = [
26-
"--treat-comment-as-code",
27-
"# %%"
28-
]
29-
3025
3126
Config file
3227
~~~~~~~~~~~

docs/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Sort your imports with `isort`_:
1414

1515
.. code:: console
1616
17-
$ nbqa isort my_notebook.ipynb --treat-comment-as-code '# %%' --nbqa-mutate
17+
$ nbqa isort my_notebook.ipynb --nbqa-mutate
1818
Fixing my_notebook.ipynb
1919
2020
Check your type annotations with `mypy`_:

docs/history.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Changelog
33
=========
44

5+
0.3.6 (2020-10-25)
6+
------------------
7+
8+
Improved error reporting if file is not found.
9+
We now pass ``--treat-comment-as-code '# %%'`` by default when running ``isort``.
10+
Fixed bug whereby tools referencing line 0 we resulting in a ``KeyError``.
11+
512
0.3.5 (2020-10-25)
613
------------------
714

docs/pre-commit.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Here's an example of what you could include in your ``.pre-commit-config.yaml``
1111

1212
repos:
1313
- repo: https://github.com/nbQA-dev/nbQA
14-
rev: 0.3.5
14+
rev: 0.3.6
1515
hooks:
1616
- id: nbqa-black
1717
- id: nbqa-isort
@@ -25,7 +25,7 @@ Custom hooks
2525
If you have your own custom tool (e.g. ``customtool``) for which we currently don't have a built-in hook, you can define your own one with: ::
2626

2727
- repo: https://github.com/nbQA-dev/nbQA
28-
rev: 0.3.5
28+
rev: 0.3.6
2929
hooks:
3030
- id: nbqa
3131
args: [customtool]

nbqa/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Attributes used by docs / packaging."""
22

3-
__version__ = "0.3.5"
3+
__version__ = "0.3.6"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.5
2+
current_version = 0.3.6
33

44
[flake8]
55
ignore = E203,E503,W503,W504

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
tests_require=test_requirements,
4747
extras_require=extra_requirements,
4848
url="https://github.com/nbQA-dev/nbQA",
49-
version="0.3.5",
49+
version="0.3.6",
5050
zip_safe=False,
5151
)

0 commit comments

Comments
 (0)