Skip to content

Commit 99eb3c4

Browse files
authored
Version 1.14.0 (#973)
1 parent 8a4ea5f commit 99eb3c4

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

docs/CHANGELOG.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
Jupytext ChangeLog
22
==================
33

4-
1.13.9 (2022-07-??)
4+
1.14.0 (2022-07-03)
55
-------------------
66

77
**Changed**
8-
- Hidden configuration files like `.jupytext.toml` or `.jupytext.py` are now ignored by Jupytext's contents manager when `allow_hidden=False` (that option was introduced in `jupyter_server==2.0.0a1`) ([#964](https://github.com/mwouts/jupytext/issues/964)).
98
- The Jupytext configuration file has a new option `cm_config_log_level` that defaults to `info_if_changed`.
109
With that value, the contents manager will log a line regarding the configuration file used only when the
11-
config file is not the same as the one previously used ([#959](https://github.com/mwouts/jupytext/issues/959))
12-
13-
**Changed**
14-
- `jupytext --set-formats ipynb,py test.py` will not override `test.ipynb` if the file exists already ([#969](https://github.com/mwouts/jupytext/issues/969)).
15-
16-
**Changed**
17-
- `jupytext --set-formats ipynb,py test.py` will not override `test.ipynb` if the file exists already ([#969](https://github.com/mwouts/jupytext/issues/969)).
10+
config file is not the same as the one previously used ([#959](https://github.com/mwouts/jupytext/issues/959)) -
11+
many thanks to R.C. Thomas for suggesting this and thoughtfully testing the patch.
12+
- Hidden configuration files like `.jupytext.toml` or `.jupytext.py` are now ignored by Jupytext's contents manager
13+
when `allow_hidden=False` (that option was introduced in `jupyter_server==2.0.0a1`) ([#964](https://github.com/mwouts/jupytext/issues/964)).
14+
- We have changed `jupytext --set-formats` to make it more similar to `jupytext --sync`. Now `--set-formats` will not
15+
override existing paired files anymore ([#969](https://github.com/mwouts/jupytext/issues/969)).
1816

17+
**Added**
18+
- We have added a test `test_pre_commit_hook_sync_with_no_config` that documents how to use the pre-commit hook without
19+
a configuration file (#967)
1920

2021
1.13.8 (2022-04-04)
2122
-------------------

docs/using-pre-commit.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Jupytext works well with the [pre-commit](https://pre-commit.com/) framework. Yo
55
```yaml
66
repos:
77
- repo: https://github.com/mwouts/jupytext
8-
rev: v1.13.7 # CURRENT_TAG/COMMIT_HASH
8+
rev: v1.14.0 # CURRENT_TAG/COMMIT_HASH
99
hooks:
1010
- id: jupytext
1111
args: [--sync]
@@ -16,7 +16,7 @@ You can provide almost all command line arguments to Jupytext in pre-commit, for
1616
```yaml
1717
repos:
1818
- repo: https://github.com/mwouts/jupytext
19-
rev: v1.13.7 # CURRENT_TAG/COMMIT_HASH
19+
rev: v1.14.0 # CURRENT_TAG/COMMIT_HASH
2020
hooks:
2121
- id: jupytext
2222
args: [--from, ipynb, --to, "py:percent"]
@@ -27,7 +27,7 @@ If you are combining Jupytext with other pre-commit hooks, you must ensure that
2727
```yaml
2828
repos:
2929
- repo: https://github.com/mwouts/jupytext
30-
rev: v1.13.7 # CURRENT_TAG/COMMIT_HASH
30+
rev: v1.14.0 # CURRENT_TAG/COMMIT_HASH
3131
hooks:
3232
- id: jupytext
3333
args: [--sync, --pipe, black]
@@ -40,3 +40,8 @@ repos:
4040
- id: black
4141
language_version: python3
4242
```
43+
44+
Tested examples of how to use the pre-commit hook are available in
45+
our [tests](https://github.com/mwouts/jupytext/tree/main/tests) -
46+
see for instance
47+
[test_pre_commit_1_sync_with_config.py](https://github.com/mwouts/jupytext/blob/main/tests/test_pre_commit_1_sync_with_config.py).

jupytext/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Jupytext's version number"""
22

3-
__version__ = "1.13.9-dev"
3+
__version__ = "1.14.0"

0 commit comments

Comments
 (0)