Skip to content

Commit b3aa25e

Browse files
⬆️🪝 update pre-commit hooks (#37)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](astral-sh/ruff-pre-commit@v0.4.3...v0.4.4) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7aad510 commit b3aa25e

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repos:
3737

3838
# Python linting using ruff
3939
- repo: https://github.com/astral-sh/ruff-pre-commit
40-
rev: v0.4.3
40+
rev: v0.4.4
4141
hooks:
4242
- id: ruff
4343
args: ["--fix", "--show-fixes"]

mqt-bench/src/__main__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import json
4+
import locale
45
import logging
56
import os
67
import sys
@@ -16,10 +17,10 @@
1617
logging.getLogger().setLevel(logging_level)
1718
logger.configure(handlers=[{"sink": sys.stdout, "level": logging_level}])
1819

19-
with Path("./input/data.json").open() as file:
20+
with Path("./input/data.json").open(encoding=locale.getpreferredencoding(False)) as file:
2021
data = json.load(file)
2122

22-
with Path("./input/params.json").open() as file:
23+
with Path("./input/params.json").open(encoding=locale.getpreferredencoding(False)) as file:
2324
params = json.load(file)
2425

2526
response = run(data, params)

mqt-ddsim/src/__main__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import json
4+
import locale
45
import logging
56
import os
67
import sys
@@ -16,10 +17,10 @@
1617
logging.getLogger().setLevel(logging_level)
1718
logger.configure(handlers=[{"sink": sys.stdout, "level": logging_level}])
1819

19-
with Path("./input/data.json").open() as file:
20+
with Path("./input/data.json").open(encoding=locale.getpreferredencoding(False)) as file:
2021
data = json.load(file)
2122

22-
with Path("./input/params.json").open() as file:
23+
with Path("./input/params.json").open(encoding=locale.getpreferredencoding(False)) as file:
2324
params = json.load(file)
2425

2526
response = run(data, params)

mqt-qcec/src/__main__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import json
4+
import locale
45
import logging
56
import os
67
import sys
@@ -16,10 +17,10 @@
1617
logging.getLogger().setLevel(logging_level)
1718
logger.configure(handlers=[{"sink": sys.stdout, "level": logging_level}])
1819

19-
with Path("./input/data.json").open() as file:
20+
with Path("./input/data.json").open(encoding=locale.getpreferredencoding(False)) as file:
2021
data = json.load(file)
2122

22-
with Path("./input/params.json").open() as file:
23+
with Path("./input/params.json").open(encoding=locale.getpreferredencoding(False)) as file:
2324
params = json.load(file)
2425

2526
response = run(data, params)

mqt-qmap/src/__main__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import json
4+
import locale
45
import logging
56
import os
67
import sys
@@ -16,10 +17,10 @@
1617
logging.getLogger().setLevel(logging_level)
1718
logger.configure(handlers=[{"sink": sys.stdout, "level": logging_level}])
1819

19-
with Path("./input/data.json").open() as file:
20+
with Path("./input/data.json").open(encoding=locale.getpreferredencoding(False)) as file:
2021
data = json.load(file)
2122

22-
with Path("./input/params.json").open() as file:
23+
with Path("./input/params.json").open(encoding=locale.getpreferredencoding(False)) as file:
2324
params = json.load(file)
2425

2526
response = run(data, params)

0 commit comments

Comments
 (0)