Skip to content

Commit 04d8a4f

Browse files
authored
Merge pull request #864 from ipython/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents ae1191b + 95dbcbb commit 04d8a4f

Some content is hidden

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

68 files changed

+105
-29
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: isort
1616
exclude: setupbase.py
1717
- repo: https://github.com/psf/black
18-
rev: 23.12.1
18+
rev: 24.1.1
1919
hooks:
2020
- id: black
2121
exclude: setupbase.py
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: prettier
2626
- repo: https://github.com/PyCQA/flake8
27-
rev: "6.1.0"
27+
rev: "7.0.0"
2828
hooks:
2929
- id: flake8
3030
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -35,7 +35,7 @@ repos:
3535
- id: check-executables-have-shebangs
3636
- id: requirements-txt-fixer
3737
- repo: https://github.com/pre-commit/mirrors-eslint
38-
rev: v9.0.0-alpha.0
38+
rev: v9.0.0-alpha.2
3939
hooks:
4040
- id: eslint
4141
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx

benchmarks/cluster_start.py

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ def start_cluster(depth, number_of_engines, path='', log_output_to_file=False):
1919
ps = [
2020
Popen(
2121
ipcontroller_cmd.split(),
22-
stdout=open('ipcontroller_output.log', 'a+')
23-
if log_output_to_file
24-
else sys.stdout,
25-
stderr=open('ipcontroller_error_output.log', 'a+')
26-
if log_output_to_file
27-
else sys.stdout,
22+
stdout=(
23+
open('ipcontroller_output.log', 'a+')
24+
if log_output_to_file
25+
else sys.stdout
26+
),
27+
stderr=(
28+
open('ipcontroller_error_output.log', 'a+')
29+
if log_output_to_file
30+
else sys.stdout
31+
),
2832
stdin=sys.stdin,
2933
)
3034
]
@@ -35,12 +39,16 @@ def start_cluster(depth, number_of_engines, path='', log_output_to_file=False):
3539
ps.append(
3640
Popen(
3741
ipengine_cmd.split(),
38-
stdout=open('ipengine_output.log', 'a+')
39-
if log_output_to_file
40-
else sys.stdout,
41-
stderr=open('ipengine_error_output.log', 'a+')
42-
if log_output_to_file
43-
else sys.stdout,
42+
stdout=(
43+
open('ipengine_output.log', 'a+')
44+
if log_output_to_file
45+
else sys.stdout
46+
),
47+
stderr=(
48+
open('ipengine_error_output.log', 'a+')
49+
if log_output_to_file
50+
else sys.stdout
51+
),
4452
stdin=sys.stdin,
4553
)
4654
)

benchmarks/gcloud_setup.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,15 @@ def delete_all_instances():
5050
def gcloud_run(*args, block=True):
5151
cmd = ["gcloud", "compute"] + list(args)
5252
print(f'$ {" ".join(cmd)}')
53-
check_call(
54-
cmd
55-
# stdout=open(get_gcloud_log_file_name(instance_name) + ".log", "a+"),
56-
# stderr=open(f"{get_gcloud_log_file_name(instance_name)}_error.out", "a+"),
57-
) if block else Popen(cmd)
53+
(
54+
check_call(
55+
cmd
56+
# stdout=open(get_gcloud_log_file_name(instance_name) + ".log", "a+"),
57+
# stderr=open(f"{get_gcloud_log_file_name(instance_name)}_error.out", "a+"),
58+
)
59+
if block
60+
else Popen(cmd)
61+
)
5862

5963

6064
def copy_files_to_instance(instance_name, *file_names, directory="~"):

docs/source/examples/customresults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
-------
1010
* MinRK
1111
"""
12+
1213
import random
1314

1415
import ipyparallel as ipp

docs/source/examples/dagdeps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
-------
77
* MinRK
88
"""
9+
910
from random import randint
1011

1112
import networkx as nx

docs/source/examples/fetchparse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
1111
ipcluster start -n 4
1212
"""
13+
1314
import sys
1415
import time
1516

docs/source/examples/interengine/bintree.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Provides parallel [all]reduce functionality
77
88
"""
9+
910
import re
1011
import socket
1112
from functools import reduce

docs/source/examples/iopubwatcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
-------
1414
* MinRK
1515
"""
16+
1617
import json
1718
import sys
1819

docs/source/examples/itermapresult.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
-------
1818
* MinRK
1919
"""
20+
2021
import time
2122

2223
import ipyparallel as ipp

docs/source/examples/nwmerge.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Example showing how to merge multiple remote data streams.
22
"""
3+
34
# Slightly modified version of:
45
# https://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/511509
56
import heapq

0 commit comments

Comments
 (0)