Skip to content

Commit 9d96a56

Browse files
committed
fix new lints
1 parent b5ff640 commit 9d96a56

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+114
-79
lines changed

contentctl/actions/deploy_acs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
from contentctl.objects.config import deploy_acs, StackType
2-
from requests import post
31
import pprint
42

3+
from requests import post
4+
5+
from contentctl.objects.config import StackType, deploy_acs
6+
57

68
class Deploy:
79
def execute(self, config: deploy_acs, appinspect_token: str) -> None:

contentctl/actions/detection_testing/infrastructures/DetectionTestingInfrastructureContainer.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import docker
2+
import docker.models.containers
3+
import docker.models.resource
4+
import docker.types
5+
16
from contentctl.actions.detection_testing.infrastructures.DetectionTestingInfrastructure import (
27
DetectionTestingInfrastructure,
38
)
49
from contentctl.objects.config import test
5-
import docker.models.resource
6-
import docker.models.containers
7-
import docker
8-
import docker.types
910

1011

1112
class DetectionTestingInfrastructureContainer(DetectionTestingInfrastructure):

contentctl/actions/detection_testing/progress_bar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import datetime
12
import time
23
from enum import StrEnum
4+
35
from tqdm import tqdm
4-
import datetime
56

67

78
class TestReportingType(StrEnum):

contentctl/actions/detection_testing/views/DetectionTestingViewCLI.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import time
2+
3+
import tqdm
4+
15
from contentctl.actions.detection_testing.views.DetectionTestingView import (
26
DetectionTestingView,
37
)
48

5-
import time
6-
import tqdm
7-
89

910
class DetectionTestingViewCLI(DetectionTestingView, arbitrary_types_allowed=True):
1011
pbar: tqdm.tqdm = None

contentctl/actions/detection_testing/views/DetectionTestingViewFile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
import pathlib
2+
3+
import yaml
4+
15
from contentctl.actions.detection_testing.views.DetectionTestingView import (
26
DetectionTestingView,
37
)
4-
import pathlib
5-
import yaml
68

79
OUTPUT_FOLDER = "test_results"
810
OUTPUT_FILENAME = "summary.yml"

contentctl/actions/detection_testing/views/DetectionTestingViewWeb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import webbrowser
12
from threading import Thread
3+
from wsgiref.simple_server import WSGIRequestHandler, make_server
24

3-
from bottle import template, Bottle, ServerAdapter
4-
from wsgiref.simple_server import make_server, WSGIRequestHandler
55
import jinja2
6-
import webbrowser
6+
from bottle import Bottle, ServerAdapter, template
77
from pydantic import ConfigDict
88

99
from contentctl.actions.detection_testing.views.DetectionTestingView import (

contentctl/actions/doc_gen.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
2-
32
from dataclasses import dataclass
43

5-
from contentctl.input.director import DirectorInputDto, Director, DirectorOutputDto
4+
from contentctl.input.director import Director, DirectorInputDto, DirectorOutputDto
65
from contentctl.output.doc_md_output import DocMdOutput
76

87

contentctl/actions/reporting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from dataclasses import dataclass
22

33
from contentctl.input.director import DirectorOutputDto
4-
from contentctl.output.svg_output import SvgOutput
5-
from contentctl.output.attack_nav_output import AttackNavOutput
64
from contentctl.objects.config import report
5+
from contentctl.output.attack_nav_output import AttackNavOutput
6+
from contentctl.output.svg_output import SvgOutput
77

88

99
@dataclass(frozen=True)

contentctl/actions/test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
from contentctl.actions.detection_testing.views.DetectionTestingViewWeb import (
1919
DetectionTestingViewWeb,
2020
)
21-
from contentctl.objects.config import Changes, Selected
21+
from contentctl.objects.config import Changes, Selected, test_servers
2222
from contentctl.objects.config import test as test_
23-
from contentctl.objects.config import test_servers
2423
from contentctl.objects.detection import Detection
2524
from contentctl.objects.integration_test import IntegrationTest
2625

contentctl/api.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from pathlib import Path
2-
from typing import Any, Union, Type
2+
from typing import Any, Type, Union
3+
4+
from contentctl.input.director import DirectorOutputDto
35
from contentctl.input.yml_reader import YmlReader
4-
from contentctl.objects.config import test_common, test, test_servers
6+
from contentctl.objects.config import test, test_common, test_servers
57
from contentctl.objects.security_content_object import SecurityContentObject
6-
from contentctl.input.director import DirectorOutputDto
78

89

910
def config_from_file(

0 commit comments

Comments
 (0)