-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various improvements #323
Various improvements #323
Conversation
niknetniko
commented
Mar 20, 2023
- Remove the timing code, as it is no longer used a lot. In specific cases where we need to see performance information, we can use a profiler.
- Convert all imports to absolute imports, as recommended by PEP8.
- Sort (and check the sorting) of imports.
- Fixes DSL Configuration options at root not passed to evaluator #322
- Move to Black v23.
This was only useful in limited cases, and in those cases where it was useful, a profiler does a much better job than we could ever do or want to do.
from tested.features import ( | ||
NOTHING, | ||
Construct, | ||
FeatureSet, | ||
WithFeatures, | ||
combine_features, | ||
) |
Check notice
Code scanning / CodeQL
Cyclic import
from ..utils import ( | ||
from typing import Any, Callable, Dict, List, Mapping, Optional, Set, Tuple, Union | ||
|
||
from tested.configs import Bundle |
Check notice
Code scanning / CodeQL
Cyclic import
from tested.evaluators import get_evaluator | ||
from tested.internationalization import get_i18n_string | ||
from tested.judge.collector import OutputManager, TestcaseCollector | ||
from tested.judge.execution import ContextResult |
Check notice
Code scanning / CodeQL
Cyclic import
|
||
from tested.configs import Bundle | ||
from tested.dodona import Message, Status | ||
from tested.judge.collector import OutputManager |
Check notice
Code scanning / CodeQL
Cyclic import
from .features import FeatureSet, combine_features, WithFeatures, Construct | ||
from .utils import get_args, flatten, sorted_no_duplicates | ||
from tested.dodona import ExtendedMessage, Status | ||
from tested.features import Construct, FeatureSet, WithFeatures, combine_features |
Check notice
Code scanning / CodeQL
Cyclic import
) | ||
from tested.evaluators import get_evaluator | ||
from tested.internationalization import get_i18n_string | ||
from tested.judge.collector import OutputManager, TestcaseCollector |
Check notice
Code scanning / CodeQL
Cyclic import
from tested.configs import Bundle | ||
from tested.datatypes import AdvancedTypes, AllTypes, ExpressionTypes, string_to_type | ||
from tested.dodona import AnnotateCode, ExtendedMessage, Message, Permission, Status | ||
from tested.features import Construct |
Check notice
Code scanning / CodeQL
Cyclic import
from tested.features import Construct | ||
from tested.internationalization import get_i18n_string | ||
from tested.languages.description_generator import DescriptionGenerator | ||
from tested.serialisation import ExceptionValue |
Check notice
Code scanning / CodeQL
Cyclic import
from tested.internationalization import get_i18n_string | ||
from tested.languages.description_generator import DescriptionGenerator | ||
from tested.serialisation import ExceptionValue | ||
from tested.testsuite import Suite |
Check notice
Code scanning / CodeQL
Cyclic import
|
||
from pydantic import BaseModel, root_validator | ||
from pydantic.dataclasses import dataclass | ||
|
||
from .testsuite import Suite, ExecutionMode | ||
from .utils import smart_close, consume_shebang, get_identifier | ||
from tested.testsuite import ExecutionMode, Suite |
Check notice
Code scanning / CodeQL
Cyclic import