Skip to content

Commit a11ef26

Browse files
committed
lint
1 parent ace2313 commit a11ef26

6 files changed

Lines changed: 7 additions & 29 deletions

File tree

examples/directoryreference/inputs.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"endpoint": "apply",
33
"expected_outputs": {
4-
"dirs": [
5-
"sample_dir_0",
6-
"sample_dir_1"
7-
]
4+
"dirs": ["sample_dir_0", "sample_dir_1"]
85
},
96
"expected_exception": null,
107
"expected_exception_regex": null,
@@ -15,10 +12,7 @@
1512
},
1613
"payload": {
1714
"inputs": {
18-
"dirs": [
19-
"sample_dir_0",
20-
"sample_dir_1"
21-
]
15+
"dirs": ["sample_dir_0", "sample_dir_1"]
2216
}
2317
}
2418
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"value": 0}
1+
{ "value": 0 }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"value": 1}
1+
{ "value": 1 }

tesseract_core/runtime/experimental.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,6 @@ def _resolve_input_dir(path: Path) -> Path:
243243
return tess_path
244244

245245

246-
def _strip_output_path(path: Path) -> Path:
247-
from tesseract_core.runtime.config import get_config
248-
249-
output_path = get_config().output_path
250-
if path.is_relative_to(output_path):
251-
return path.relative_to(output_path)
252-
else:
253-
return path
254-
255-
256246
def _strip_output_file(path: Path) -> Path:
257247
from tesseract_core.runtime.config import get_config
258248

tests/endtoend_tests/test_examples.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ class Config:
103103
"conda": Config(),
104104
"required_files": Config(input_path="input"),
105105
"filereference": Config(input_path="test_cases/testdata", output_path="output"),
106-
"directoryreference": Config(input_path="test_cases/testdata", output_path="output"),
106+
"directoryreference": Config(
107+
input_path="test_cases/testdata", output_path="output"
108+
),
107109
"metrics": Config(test_with_random_inputs=True),
108110
"qp_solve": Config(),
109111
"tesseractreference": Config(), # Can't test requests standalone; needs target Tesseract. Covered in separate test.

0 commit comments

Comments
 (0)