Skip to content

add __all__ to avoid linting warnings#450

Open
jhultgre wants to merge 1 commit into
shotgunsoftware:masterfrom
jhultgre:patch-1
Open

add __all__ to avoid linting warnings#450
jhultgre wants to merge 1 commit into
shotgunsoftware:masterfrom
jhultgre:patch-1

add __all__ to avoid linting warnings

05c0d62
Select commit
Loading
Failed to load commit list.
Azure Pipelines / python-api failed Jun 15, 2026 in 3m 27s

Build #20260615.1 had test failures

Details

Tests

  • Failed: 1,932 (69.40%)
  • Passed: 852 (30.60%)
  • Other: 0 (0.00%)
  • Total: 2,784

Annotations

Check failure on line 8535 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python-api

Build log #L8535

Bash exited with code '1'.

Check failure on line 8535 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python-api

Build log #L8535

Bash exited with code '1'.

Check failure on line 8536 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python-api

Build log #L8536

Bash exited with code '1'.

Check failure on line 8535 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python-api

Build log #L8535

Bash exited with code '1'.

Check failure on line 1 in tests/test_api.py::TestHumanUserAuth::test_humanuser_find

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python-api

tests/test_api.py::TestHumanUserAuth::test_humanuser_find

Test failed

Check failure on line 1 in tests/test_api.py::TestHumanUserAuth::test_humanuser_upload_thumbnail_for_version

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python-api

tests/test_api.py::TestHumanUserAuth::test_humanuser_upload_thumbnail_for_version

Test failed

Check failure on line 1 in tests/test_client.py::TestShotgunClientInterface::test_client_interface

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python-api

tests/test_client.py::TestShotgunClientInterface::test_client_interface

tests/base.py:124: in setUp
    super().setUp()
tests/base.py:79: in setUp
    self.sg = api.Shotgun(
shotgun_api3/shotgun.py:665: in __init__
    self.config.set_server_params(self.base_url)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <shotgun_api3.shotgun._Config object at 0x7fe803e42f10>
base_url = '$(ci_site)'

    def set_server_params(self, base_url: str) -> None:
        """
        Set the different server related fields based on the passed in URL.
    
        This will impact the following attributes:
    
        - scheme: http or https
        - api_path: usually /api3/json
        - server: usually something.shotgunstudio.com
    
        :param str base_url: The server URL.
    
        :raises ValueError: Raised if protocol is not http or https.
        """
        self.scheme, self.server, api_base, _, _ = urllib.parse.urlsplit(base_url)
        if self.scheme not in ("http", "https"):
>           raise ValueError("base_url must use http or https got '%s'" % base_url)
E           ValueError: base_url must use http or https got '$(ci_site)'

shotgun_api3/shotgun.py:461: ValueError
Raw output
/home/vsts/work/1/s/shotgun_api3/shotgun.py:461: ValueError: base_url must use http or https got '$(ci_site)'

Check failure on line 1 in tests/test_client.py::TestShotgunClientInterface::test_module_interface

See this annotation in the file changed.

@azure-pipelines azure-pipelines / python-api

tests/test_client.py::TestShotgunClientInterface::test_module_interface

tests/base.py:124: in setUp
    super().setUp()
tests/base.py:79: in setUp
    self.sg = api.Shotgun(
shotgun_api3/shotgun.py:665: in __init__
    self.config.set_server_params(self.base_url)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <shotgun_api3.shotgun._Config object at 0x7fe803ab2650>
base_url = '$(ci_site)'

    def set_server_params(self, base_url: str) -> None:
        """
        Set the different server related fields based on the passed in URL.
    
        This will impact the following attributes:
    
        - scheme: http or https
        - api_path: usually /api3/json
        - server: usually something.shotgunstudio.com
    
        :param str base_url: The server URL.
    
        :raises ValueError: Raised if protocol is not http or https.
        """
        self.scheme, self.server, api_base, _, _ = urllib.parse.urlsplit(base_url)
        if self.scheme not in ("http", "https"):
>           raise ValueError("base_url must use http or https got '%s'" % base_url)
E           ValueError: base_url must use http or https got '$(ci_site)'

shotgun_api3/shotgun.py:461: ValueError
Raw output
/home/vsts/work/1/s/shotgun_api3/shotgun.py:461: ValueError: base_url must use http or https got '$(ci_site)'