Skip to content

Commit b5a6aa2

Browse files
authored
Fixing deprecated warnings and pre-commit issues (#354)
1 parent ec8ce8e commit b5a6aa2

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ repos:
66
- id: black
77

88
- repo: https://github.com/adamchainz/blacken-docs
9-
rev: v1.12.1
9+
rev: 1.13.0
1010
hooks:
1111
- id: blacken-docs
1212
additional_dependencies: [black==22.12.0]
1313

1414
- repo: https://github.com/pycqa/isort
15-
rev: 5.11.4
15+
rev: 5.12.0
1616
hooks:
1717
- id: isort
1818

@@ -43,6 +43,6 @@ repos:
4343

4444
# this validates our github workflow files
4545
- repo: https://github.com/python-jsonschema/check-jsonschema
46-
rev: 0.20.0
46+
rev: 0.21.0
4747
hooks:
4848
- id: check-github-workflows

tests/integration/test_launcher_local.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,31 @@
99

1010

1111
def _check_no_shutdown_warning(port: int, log: str) -> bool:
12-
msg = f"WARNING localhost:{port}:client\.py:[0-9]+ Geometry Service will not be shutdown since it was already running\.\.\." # noqa : E501
12+
msg = (
13+
"WARNING localhost:"
14+
+ str(port)
15+
+ r":client\.py:[0-9]+ Geometry Service will not be shutdown since it was already running\.\.\." # noqa : E501
16+
)
1317
pattern = re.compile(msg)
1418
return True if pattern.search(log) else False
1519

1620

1721
def _check_service_already_running(port: int, log: str) -> bool:
18-
msg = f"WARNING PyGeometry_global:localinstance\.py:[0-9]+ Service already running at port {port}\.\.\." # noqa : E501
22+
msg = (
23+
r"WARNING PyGeometry_global:localinstance\.py:[0-9]+ Service already running at port "
24+
+ str(port)
25+
+ r"\.\.\."
26+
)
1927
pattern = re.compile(msg)
2028
return True if pattern.search(log) else False
2129

2230

2331
def _check_restarting_service(port: int, log: str) -> bool:
24-
msg = f"WARNING PyGeometry_global:localinstance\.py:124 Restarting service already running at port {port}\.\.\." # noqa : E501
32+
msg = (
33+
r"WARNING PyGeometry_global:localinstance\.py:124 Restarting service already running at port " # noqa : E501
34+
+ str(port)
35+
+ r"\.\.\."
36+
)
2537
pattern = re.compile(msg)
2638
return True if pattern.search(log) else False
2739

0 commit comments

Comments
 (0)