Skip to content

Commit efc7f1f

Browse files
authored
Merge pull request #259 from IntelPython/refactor/validation
Refactor validation
2 parents 4f0154e + 7ca8c39 commit efc7f1f

File tree

8 files changed

+250
-556
lines changed

8 files changed

+250
-556
lines changed

.github/workflows/build_and_run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
dpbench \
7373
-i python,numpy,dpnp,sycl,numba_n,numba_np,numba_npr,numba_dpex_k,numba_dpex_n,numba_dpex_p \
74-
run --no-validate -r2 --no-print-results
74+
run -r2 --no-print-results
7575
7676
- name: Generate report
7777
shell: bash -l {0}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ repos:
5050
hooks:
5151
- id: pydocstyle
5252
# TODO: add packages one by one to enforce pydocstyle eventually
53-
files: (^dpbench/config/|^scripts/|^dpbench/console/|^dpbench/infrastructure/benchmark_runner.py)
53+
files: (^dpbench/config/|^scripts/|^dpbench/console/|^dpbench/infrastructure/benchmark_runner.py|^dpbench/infrastructure/benchmark_validation.py)
5454
args: ["--convention=google"]
5555
# D417 does not work properly:
5656
# https://github.com/PyCQA/pydocstyle/issues/459

dpbench/infrastructure/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from .benchmark import Benchmark, BenchmarkResults
5+
from .benchmark import Benchmark
6+
from .benchmark_results import BenchmarkResults
67
from .datamodel import (
78
Base,
89
Result,
@@ -26,7 +27,6 @@
2627
generate_performance_report,
2728
get_unexpected_failures,
2829
)
29-
from .utilities import validate
3030

3131
__all__ = [
3232
"Base",
@@ -48,5 +48,4 @@
4848
"generate_performance_report",
4949
"generate_comparison_report",
5050
"get_unexpected_failures",
51-
"validate",
5251
]

0 commit comments

Comments
 (0)