Skip to content

Commit

Permalink
Fix import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Bond-009 committed Oct 18, 2024
1 parent 05c09e0 commit aac1fdd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion tested/languages/nextflow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
from pathlib import Path
from typing import TYPE_CHECKING

from tested.datatypes import AdvancedStringTypes, AllTypes, BasicNumericTypes, BasicStringTypes
from tested.datatypes import (
AdvancedStringTypes,
AllTypes,
BasicNumericTypes,
BasicStringTypes,
)
from tested.dodona import AnnotateCode, Message
from tested.features import Construct, TypeSupport
from tested.languages.conventionalize import Conventionable, NamingConventions
Expand All @@ -17,6 +22,7 @@
if TYPE_CHECKING:
from tested.languages.generation import PreparedExecutionUnit


class Nextflow(Language):
def compilation(self, files: list[str]) -> CallbackResult:
return ["groovyc", *files], files
Expand Down
4 changes: 2 additions & 2 deletions tested/languages/nextflow/generators.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import json
import shlex

from typing import Literal, cast
from pathlib import Path
from typing import Literal, cast

from tested.datatypes import AdvancedStringTypes, BasicNumericTypes, BasicStringTypes
from tested.languages.conventionalize import submission_file
Expand All @@ -25,6 +24,7 @@
)
from tested.testsuite import MainInput


def convert_value(value: Value) -> str:
if value.type in (AdvancedStringTypes.CHAR, BasicStringTypes.TEXT):
return json.dumps(value.data)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
from tested.configs import create_bundle
from tested.features import Construct
from tested.judge.execution import ExecutionResult
from tested.languages import get_language, LANGUAGES
from tested.languages import LANGUAGES, get_language
from tested.languages.generation import get_readable_input
from tested.testsuite import Context, MainInput, Suite, Tab, Testcase, TextData
from tests.language_markers import (
ALL_LANGUAGES,
all_languages_except,
ALL_SPECIFIC_LANGUAGES,
EXCEPTION_LANGUAGES,
all_languages_except,
)
from tests.manual_utils import assert_valid_output, configuration, execute_config

Expand Down

0 comments on commit aac1fdd

Please sign in to comment.