Skip to content

Commit

Permalink
nox -s fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis-Mittenzwei committed Oct 2, 2024
1 parent 639e5a1 commit 1dbb4c2
Show file tree
Hide file tree
Showing 24 changed files with 74 additions and 21 deletions.
5 changes: 4 additions & 1 deletion exasol_script_languages_container_ci/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from exasol_script_languages_container_ci.cli.commands import run_ci, run_release
from exasol_script_languages_container_ci.cli.commands import (
run_ci,
run_release,
)
5 changes: 4 additions & 1 deletion exasol_script_languages_container_ci/lib/branch_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import re
from enum import Enum, auto
from enum import (
Enum,
auto,
)


class BuildSteps(Enum):
Expand Down
5 changes: 4 additions & 1 deletion exasol_script_languages_container_ci/lib/ci.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import logging
from typing import Callable, Set
from typing import (
Callable,
Set,
)

from exasol_script_languages_container_ci.lib.branch_config import BranchConfig
from exasol_script_languages_container_ci.lib.ci_build import CIBuild
Expand Down
5 changes: 4 additions & 1 deletion exasol_script_languages_container_ci/lib/ci_build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import logging
from typing import Optional, Tuple
from typing import (
Optional,
Tuple,
)

from exasol.slc.api import build
from exasol.slc.internal.tasks.test.test_container_content import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from inspect import cleandoc
from pathlib import Path
from typing import Callable, Protocol
from typing import (
Callable,
Protocol,
)

import docker

Expand Down
5 changes: 4 additions & 1 deletion exasol_script_languages_container_ci/lib/ci_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import logging
from typing import Protocol, Tuple
from typing import (
Protocol,
Tuple,
)

from exasol.slc.api.run_db_tests import run_db_test
from exasol.slc.models.test_result import AllTestsResult
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from pathlib import Path
from tempfile import TemporaryDirectory

from datamodel_code_generator import InputFileType, generate
from datamodel_code_generator import (
InputFileType,
generate,
)

from exasol_script_languages_container_ci.lib.render_template import render_template

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import logging
from pathlib import Path

from github import Github, GithubException
from github import (
Github,
GithubException,
)


class GithubReleaseAssetUploader:
Expand Down
5 changes: 4 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest import mock
from unittest.mock import MagicMock, patch
from unittest.mock import (
MagicMock,
patch,
)

import pytest

Expand Down
5 changes: 4 additions & 1 deletion test/integration_tests/test_ci_security_scan.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from test.matchers import file_exists_matcher
from unittest.mock import call, create_autospec
from unittest.mock import (
call,
create_autospec,
)

import pytest

Expand Down
5 changes: 4 additions & 1 deletion test/mock_cast.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from typing import Any, cast
from typing import (
Any,
cast,
)
from unittest.mock import Mock


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/unit_tests/ci_calls.py → test/unit/ci_calls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from test.unit_tests.test_env import test_env
from test.unit.test_env import test_env
from unittest.mock import call


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from tempfile import TemporaryDirectory
from test.mock_cast import mock_cast
from typing import Union
from unittest.mock import MagicMock, create_autospec
from unittest.mock import (
MagicMock,
create_autospec,
)

from exasol_script_languages_container_ci.lib.asset_uploader import AssetUploader
from exasol_script_languages_container_ci.lib.github_release_asset_uploader import (
Expand Down
4 changes: 2 additions & 2 deletions test/unit_tests/test_ci.py → test/unit/test_ci.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from test.unit_tests import ci_calls
from test.unit_tests.test_env import test_env
from test.unit import ci_calls
from test.unit.test_env import test_env
from typing import Union
from unittest.mock import Mock

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
from pathlib import Path
from test.mock_cast import mock_cast
from typing import Union
from unittest.mock import MagicMock, call, create_autospec
from unittest.mock import (
MagicMock,
call,
create_autospec,
)

import pytest
from exasol.slc.models.test_result import AllTestsResult
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 7 additions & 3 deletions test/unit_tests/test_release.py → test/unit/test_release.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
from test.unit_tests import ci_calls
from test.unit_tests.test_env import test_env
from test.unit import ci_calls
from test.unit.test_env import test_env
from typing import Union
from unittest.mock import MagicMock, Mock, create_autospec
from unittest.mock import (
MagicMock,
Mock,
create_autospec,
)

import pytest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from test.mock_cast import mock_cast
from typing import Union
from unittest.mock import MagicMock, Mock, call, create_autospec, patch
from unittest.mock import (
MagicMock,
Mock,
call,
create_autospec,
patch,
)

from exasol_script_languages_container_ci.lib.asset_uploader import AssetUploader
from exasol_script_languages_container_ci.lib.ci_export import CIExport
Expand Down

0 comments on commit 1dbb4c2

Please sign in to comment.