Skip to content

Commit e7d5820

Browse files
committed
pin darker, upgrade black
1 parent e9fce61 commit e7d5820

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install darker black==21.12b0
31+
pip install darker==1.5.1 black==22.10.0
3232
- name: Lint with darker
3333
run: |
3434
darker -r 60625f241f298b5039cb2debc365db38aa7bb522 --check --diff . || (

IPython/core/interactiveshell.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,17 @@ def __repr__(self):
226226
raw_cell = (
227227
(self.raw_cell[:50] + "..") if len(self.raw_cell) > 50 else self.raw_cell
228228
)
229-
return '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>' % (
230-
name,
231-
id(self),
232-
raw_cell,
233-
self.store_history,
234-
self.silent,
235-
self.shell_futures,
236-
self.cell_id,
229+
return (
230+
'<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>'
231+
% (
232+
name,
233+
id(self),
234+
raw_cell,
235+
self.store_history,
236+
self.silent,
237+
self.shell_futures,
238+
self.cell_id,
239+
)
237240
)
238241

239242

IPython/core/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
kernel_protocol_version_info = (5, 0)
3737
kernel_protocol_version = "%i.%i" % kernel_protocol_version_info
3838

39-
license = 'BSD-3-Clause'
39+
license = "BSD-3-Clause"
4040

4141
authors = {'Fernando' : ('Fernando Perez','fperez.net@gmail.com'),
4242
'Janko' : ('Janko Hauser','jhauser@zscout.de'),

IPython/testing/plugin/pytest_ipdoctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ def _remove_unwanted_precision(self, want: str, got: str) -> str:
782782
precision = 0 if fraction is None else len(fraction)
783783
if exponent is not None:
784784
precision -= int(exponent)
785-
if float(w.group()) == approx(float(g.group()), abs=10 ** -precision):
785+
if float(w.group()) == approx(float(g.group()), abs=10**-precision):
786786
# They're close enough. Replace the text we actually
787787
# got with the text we want, so that it will match when we
788788
# check the string literally.

0 commit comments

Comments
 (0)