Skip to content

Commit 752003b

Browse files
authored
Merge pull request #957 from mdujava/skipversion
Dont pass condition as string for skipif + isort
2 parents 3ce316b + 0edff13 commit 752003b

325 files changed

Lines changed: 911 additions & 708 deletions

File tree

Some content is hidden

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

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ d499948418f6e1dc432dabf11f158e58d9a0b0d8 # black 25.1.0 changes
1313
7619a4c61d7914b16088f585e2bceacebf26ec88 # reduce new lines to one after import block
1414
a5deb34f80c6644936cb192686ded29a292d1e8f # unpacking tuple does not need () on lhs
1515
80bb9d6d9f11ac33d6c9287261d2ce44aadd3f87 # fix type ignore comment
16+
1518dcb9486e58b2223b6026eebbc15f516c7709 # isort --profile black

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
max-line-length = 120
33
ignore = E203,W503
44

5+
[isort]
6+
profile = "black"
7+
58
[mypy]
69
ignore_missing_imports = True

testsuite/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
handler.setFormatter(formatter)
2121
logger.addHandler(handler)
2222

23-
from pathlib import Path # noqa
24-
from packaging.version import Version # noqa
25-
from weakget import weakget
23+
from pathlib import Path
24+
2625
import importlib_resources as resources
26+
from packaging.version import Version
27+
from weakget import weakget
2728

2829
from testsuite.config import settings # noqa
2930

testsuite/billing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import stripe
66
from braintree.exceptions.request_timeout_error import RequestTimeoutError
77
from braintree.exceptions.service_unavailable_error import ServiceUnavailableError
8-
98
from threescale_api.resources import InvoiceState
109

1110

testsuite/capabilities/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
import enum
10-
from typing import Set, Callable, Any, Tuple, List
10+
from typing import Any, Callable, List, Set, Tuple
1111

1212
# Users should have access only to these public methods/decorators
1313
__all__ = ["CapabilityRegistry", "Capability"]

testsuite/capabilities/providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""This module is where most of the capability providers should be to not have them scattered around"""
22

33
from testsuite import gateways
4-
from testsuite.capabilities import CapabilityRegistry, Capability
5-
from testsuite.configuration import openshift
4+
from testsuite.capabilities import Capability, CapabilityRegistry
65
from testsuite.config import settings
6+
from testsuite.configuration import openshift
77

88

99
def gateway_capabilities():

testsuite/certificates/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Collection of classes for working with different ssl certificate tools."""
22

33
from abc import ABC, abstractmethod
4-
from typing import List, Optional, Tuple, Dict
4+
from typing import Dict, List, Optional, Tuple
55

66
from testsuite.certificates.persist import TmpFilePersist
77

testsuite/certificates/cfssl/cli.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
import json
44
import os
55
import subprocess
6-
from typing import Optional, List, Tuple, Dict, Any
6+
from typing import Any, Dict, List, Optional, Tuple
77

88
import importlib_resources as resources
99

10-
from testsuite.certificates import KeyProvider, SigningProvider, Certificate, UnsignedKey
10+
from testsuite.certificates import (
11+
Certificate,
12+
KeyProvider,
13+
SigningProvider,
14+
UnsignedKey,
15+
)
1116
from testsuite.certificates.cfssl import CFSSLException
1217

1318

testsuite/certificates/stores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from abc import ABC
66
from typing import Dict
77

8-
from testsuite.certificates import CertificateStore, Certificate
8+
from testsuite.certificates import Certificate, CertificateStore
99

1010

1111
def _persist(path, name: str, ext: str, content: str):

testsuite/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""Module responsible for processing configuration"""
22

33
import inspect
4-
from typing import Dict, Any, Mapping
4+
from typing import Any, Dict, Mapping
55

66
from weakget import weakget
77

8-
from testsuite.config import settings
98
from testsuite.capabilities import Singleton
9+
from testsuite.config import settings
1010
from testsuite.openshift.client import OpenShiftClient
1111

1212

0 commit comments

Comments
 (0)