Skip to content

[pre-commit.ci] pre-commit autoupdate#140

Merged
tgross03 merged 1 commit intomainfrom
pre-commit-ci-update-config
Mar 6, 2026
Merged

[pre-commit.ci] pre-commit autoupdate#140
tgross03 merged 1 commit intomainfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Mar 2, 2026

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.4](astral-sh/ruff-pre-commit@v0.14.14...v0.15.4)
@codecov
Copy link

codecov bot commented Mar 2, 2026

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
82 4 78 0
View the top 3 failed test(s) by shortest run time
tests/test_layouts.py::TestLayouts::test_get_array_layout_dataframe
Stack Traces | 0.001s run time
url = 'https://nominatim.openstreetmap.org/search?q=dortmund&format=json'
err_str = "Unable to retrieve coordinates for address 'dortmund'; {msg}"
use_google = False

    def _get_json_result(url, err_str, use_google):
        # need to do this here to prevent a series of complicated circular imports
        from .name_resolve import NameResolveError
    
        try:
            # Retrieve JSON response from Google maps API
>           resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../...../pyvisgen/lib/python3.12/urllib/request.py:215: in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:521: in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:630: in http_response
    response = self.parent.error(
../../...../pyvisgen/lib/python3.12/urllib/request.py:559: in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:492: in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <urllib.request.HTTPDefaultErrorHandler object at 0x7f23b2695790>
req = <urllib.request.Request object at 0x7f23ab547c80>
fp = <http.client.HTTPResponse object at 0x7f23ab547220>, code = 403
msg = 'Forbidden', hdrs = <http.client.HTTPMessage object at 0x7f23aad0b950>

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.full_url, code, msg, hdrs, fp)
E       urllib.error.HTTPError: HTTP Error 403: Forbidden

../../...../pyvisgen/lib/python3.12/urllib/request.py:639: HTTPError

The above exception was the direct cause of the following exception:

self = <class 'tests.test_layouts.TestLayouts'>

    def setup_class(self):
        from pathlib import Path
    
        import pandas as pd
        from astropy.coordinates import EarthLocation
    
        # Declare a reduced EHT test layout. This should suffice for
        # testing purposes
        self.eht_test_layout = pd.DataFrame(
            {
                "st_num": [0, 1, 2],
                "x": [2225037.1851, -1828796.2, -768713.9637],
                "y": [-5441199.162, -5054406.8, -5988541.7982],
                "z": [-2479303.4629, 3427865.2, 2063275.9472],
                "diam": [84.700000, 10.000000, 50.000000],
                "el_low": [15.000000, 15.000000, 15.000000],
                "el_high": [85.000000, 85.000000, 85.000000],
                "sefd": [110.0, 11900.0, 560.0],
                "altitude": [5030.0, 3185.0, 4640.0],
            }
        )
    
        # Load test layout from file
        self.test_layout = pd.read_csv(
            Path(__file__).parent.resolve() / "data/test_layout.txt", sep=r"\s+"
        )
    
        # Place test layout in Dortmund
>       loc = EarthLocation.of_address("dortmund")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_layouts.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:473: in of_address
    geo_result = _get_json_result(geo_url, err_str=err_str, use_google=use_google)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'https://nominatim.openstreetmap.org/search?q=dortmund&format=json'
err_str = "Unable to retrieve coordinates for address 'dortmund'; {msg}"
use_google = False

    def _get_json_result(url, err_str, use_google):
        # need to do this here to prevent a series of complicated circular imports
        from .name_resolve import NameResolveError
    
        try:
            # Retrieve JSON response from Google maps API
            resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
            resp_data = json.loads(resp.read().decode("utf8"))
    
        except urllib.error.URLError as e:
            # This catches a timeout error, see:
            #   http://stackoverflow..../questions/2712524/handling-urllib2s-timeout-python
            msg = (
                "connection timed out" if isinstance(e.reason, socket.timeout) else e.reason
            )
>           raise NameResolveError(err_str.format(msg=msg)) from e
E           astropy.coordinates.name_resolve.NameResolveError: Unable to retrieve coordinates for address 'dortmund'; Forbidden

../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:86: NameResolveError
tests/test_layouts.py::TestLayouts::test_get_array_layout_raise
Stack Traces | 0.001s run time
url = 'https://nominatim.openstreetmap.org/search?q=dortmund&format=json'
err_str = "Unable to retrieve coordinates for address 'dortmund'; {msg}"
use_google = False

    def _get_json_result(url, err_str, use_google):
        # need to do this here to prevent a series of complicated circular imports
        from .name_resolve import NameResolveError
    
        try:
            # Retrieve JSON response from Google maps API
>           resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../...../pyvisgen/lib/python3.12/urllib/request.py:215: in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:521: in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:630: in http_response
    response = self.parent.error(
../../...../pyvisgen/lib/python3.12/urllib/request.py:559: in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:492: in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <urllib.request.HTTPDefaultErrorHandler object at 0x7f23b2695790>
req = <urllib.request.Request object at 0x7f23ab547c80>
fp = <http.client.HTTPResponse object at 0x7f23ab547220>, code = 403
msg = 'Forbidden', hdrs = <http.client.HTTPMessage object at 0x7f23aad0b950>

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.full_url, code, msg, hdrs, fp)
E       urllib.error.HTTPError: HTTP Error 403: Forbidden

../../...../pyvisgen/lib/python3.12/urllib/request.py:639: HTTPError

The above exception was the direct cause of the following exception:

self = <class 'tests.test_layouts.TestLayouts'>

    def setup_class(self):
        from pathlib import Path
    
        import pandas as pd
        from astropy.coordinates import EarthLocation
    
        # Declare a reduced EHT test layout. This should suffice for
        # testing purposes
        self.eht_test_layout = pd.DataFrame(
            {
                "st_num": [0, 1, 2],
                "x": [2225037.1851, -1828796.2, -768713.9637],
                "y": [-5441199.162, -5054406.8, -5988541.7982],
                "z": [-2479303.4629, 3427865.2, 2063275.9472],
                "diam": [84.700000, 10.000000, 50.000000],
                "el_low": [15.000000, 15.000000, 15.000000],
                "el_high": [85.000000, 85.000000, 85.000000],
                "sefd": [110.0, 11900.0, 560.0],
                "altitude": [5030.0, 3185.0, 4640.0],
            }
        )
    
        # Load test layout from file
        self.test_layout = pd.read_csv(
            Path(__file__).parent.resolve() / "data/test_layout.txt", sep=r"\s+"
        )
    
        # Place test layout in Dortmund
>       loc = EarthLocation.of_address("dortmund")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_layouts.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:473: in of_address
    geo_result = _get_json_result(geo_url, err_str=err_str, use_google=use_google)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'https://nominatim.openstreetmap.org/search?q=dortmund&format=json'
err_str = "Unable to retrieve coordinates for address 'dortmund'; {msg}"
use_google = False

    def _get_json_result(url, err_str, use_google):
        # need to do this here to prevent a series of complicated circular imports
        from .name_resolve import NameResolveError
    
        try:
            # Retrieve JSON response from Google maps API
            resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
            resp_data = json.loads(resp.read().decode("utf8"))
    
        except urllib.error.URLError as e:
            # This catches a timeout error, see:
            #   http://stackoverflow..../questions/2712524/handling-urllib2s-timeout-python
            msg = (
                "connection timed out" if isinstance(e.reason, socket.timeout) else e.reason
            )
>           raise NameResolveError(err_str.format(msg=msg)) from e
E           astropy.coordinates.name_resolve.NameResolveError: Unable to retrieve coordinates for address 'dortmund'; Forbidden

../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:86: NameResolveError
tests/test_layouts.py::TestLayouts::test_get_array_names
Stack Traces | 0.001s run time
url = 'https://nominatim.openstreetmap.org/search?q=dortmund&format=json'
err_str = "Unable to retrieve coordinates for address 'dortmund'; {msg}"
use_google = False

    def _get_json_result(url, err_str, use_google):
        # need to do this here to prevent a series of complicated circular imports
        from .name_resolve import NameResolveError
    
        try:
            # Retrieve JSON response from Google maps API
>           resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../...../pyvisgen/lib/python3.12/urllib/request.py:215: in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:521: in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:630: in http_response
    response = self.parent.error(
../../...../pyvisgen/lib/python3.12/urllib/request.py:559: in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:492: in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <urllib.request.HTTPDefaultErrorHandler object at 0x7f23b2695790>
req = <urllib.request.Request object at 0x7f23ab547c80>
fp = <http.client.HTTPResponse object at 0x7f23ab547220>, code = 403
msg = 'Forbidden', hdrs = <http.client.HTTPMessage object at 0x7f23aad0b950>

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.full_url, code, msg, hdrs, fp)
E       urllib.error.HTTPError: HTTP Error 403: Forbidden

../../...../pyvisgen/lib/python3.12/urllib/request.py:639: HTTPError

The above exception was the direct cause of the following exception:

self = <class 'tests.test_layouts.TestLayouts'>

    def setup_class(self):
        from pathlib import Path
    
        import pandas as pd
        from astropy.coordinates import EarthLocation
    
        # Declare a reduced EHT test layout. This should suffice for
        # testing purposes
        self.eht_test_layout = pd.DataFrame(
            {
                "st_num": [0, 1, 2],
                "x": [2225037.1851, -1828796.2, -768713.9637],
                "y": [-5441199.162, -5054406.8, -5988541.7982],
                "z": [-2479303.4629, 3427865.2, 2063275.9472],
                "diam": [84.700000, 10.000000, 50.000000],
                "el_low": [15.000000, 15.000000, 15.000000],
                "el_high": [85.000000, 85.000000, 85.000000],
                "sefd": [110.0, 11900.0, 560.0],
                "altitude": [5030.0, 3185.0, 4640.0],
            }
        )
    
        # Load test layout from file
        self.test_layout = pd.read_csv(
            Path(__file__).parent.resolve() / "data/test_layout.txt", sep=r"\s+"
        )
    
        # Place test layout in Dortmund
>       loc = EarthLocation.of_address("dortmund")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_layouts.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:473: in of_address
    geo_result = _get_json_result(geo_url, err_str=err_str, use_google=use_google)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'https://nominatim.openstreetmap.org/search?q=dortmund&format=json'
err_str = "Unable to retrieve coordinates for address 'dortmund'; {msg}"
use_google = False

    def _get_json_result(url, err_str, use_google):
        # need to do this here to prevent a series of complicated circular imports
        from .name_resolve import NameResolveError
    
        try:
            # Retrieve JSON response from Google maps API
            resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
            resp_data = json.loads(resp.read().decode("utf8"))
    
        except urllib.error.URLError as e:
            # This catches a timeout error, see:
            #   http://stackoverflow..../questions/2712524/handling-urllib2s-timeout-python
            msg = (
                "connection timed out" if isinstance(e.reason, socket.timeout) else e.reason
            )
>           raise NameResolveError(err_str.format(msg=msg)) from e
E           astropy.coordinates.name_resolve.NameResolveError: Unable to retrieve coordinates for address 'dortmund'; Forbidden

../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:86: NameResolveError
tests/test_layouts.py::TestLayouts::test_get_array_layout
Stack Traces | 0.064s run time
url = 'https://nominatim.openstreetmap.org/search?q=dortmund&format=json'
err_str = "Unable to retrieve coordinates for address 'dortmund'; {msg}"
use_google = False

    def _get_json_result(url, err_str, use_google):
        # need to do this here to prevent a series of complicated circular imports
        from .name_resolve import NameResolveError
    
        try:
            # Retrieve JSON response from Google maps API
>           resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../...../pyvisgen/lib/python3.12/urllib/request.py:215: in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:521: in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:630: in http_response
    response = self.parent.error(
../../...../pyvisgen/lib/python3.12/urllib/request.py:559: in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
../../...../pyvisgen/lib/python3.12/urllib/request.py:492: in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <urllib.request.HTTPDefaultErrorHandler object at 0x7f23b2695790>
req = <urllib.request.Request object at 0x7f23ab547c80>
fp = <http.client.HTTPResponse object at 0x7f23ab547220>, code = 403
msg = 'Forbidden', hdrs = <http.client.HTTPMessage object at 0x7f23aad0b950>

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.full_url, code, msg, hdrs, fp)
E       urllib.error.HTTPError: HTTP Error 403: Forbidden

../../...../pyvisgen/lib/python3.12/urllib/request.py:639: HTTPError

The above exception was the direct cause of the following exception:

self = <class 'tests.test_layouts.TestLayouts'>

    def setup_class(self):
        from pathlib import Path
    
        import pandas as pd
        from astropy.coordinates import EarthLocation
    
        # Declare a reduced EHT test layout. This should suffice for
        # testing purposes
        self.eht_test_layout = pd.DataFrame(
            {
                "st_num": [0, 1, 2],
                "x": [2225037.1851, -1828796.2, -768713.9637],
                "y": [-5441199.162, -5054406.8, -5988541.7982],
                "z": [-2479303.4629, 3427865.2, 2063275.9472],
                "diam": [84.700000, 10.000000, 50.000000],
                "el_low": [15.000000, 15.000000, 15.000000],
                "el_high": [85.000000, 85.000000, 85.000000],
                "sefd": [110.0, 11900.0, 560.0],
                "altitude": [5030.0, 3185.0, 4640.0],
            }
        )
    
        # Load test layout from file
        self.test_layout = pd.read_csv(
            Path(__file__).parent.resolve() / "data/test_layout.txt", sep=r"\s+"
        )
    
        # Place test layout in Dortmund
>       loc = EarthLocation.of_address("dortmund")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_layouts.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:473: in of_address
    geo_result = _get_json_result(geo_url, err_str=err_str, use_google=use_google)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'https://nominatim.openstreetmap.org/search?q=dortmund&format=json'
err_str = "Unable to retrieve coordinates for address 'dortmund'; {msg}"
use_google = False

    def _get_json_result(url, err_str, use_google):
        # need to do this here to prevent a series of complicated circular imports
        from .name_resolve import NameResolveError
    
        try:
            # Retrieve JSON response from Google maps API
            resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
            resp_data = json.loads(resp.read().decode("utf8"))
    
        except urllib.error.URLError as e:
            # This catches a timeout error, see:
            #   http://stackoverflow..../questions/2712524/handling-urllib2s-timeout-python
            msg = (
                "connection timed out" if isinstance(e.reason, socket.timeout) else e.reason
            )
>           raise NameResolveError(err_str.format(msg=msg)) from e
E           astropy.coordinates.name_resolve.NameResolveError: Unable to retrieve coordinates for address 'dortmund'; Forbidden

../../...../pyvisgen/lib/python3.12.../astropy/coordinates/earth.py:86: NameResolveError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@tgross03 tgross03 merged commit 5e06b26 into main Mar 6, 2026
8 of 11 checks passed
@tgross03 tgross03 deleted the pre-commit-ci-update-config branch March 6, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant