sot / proseco

Probabilistic star evaluation and catalog optimization
https://sot.github.io/proseco
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Ruff format and linting #395

Closed taldcroft closed 6 months ago

taldcroft commented 6 months ago

Description

This uses https://github.com/sot/skare3/pull/1269 as the template.

Interface impacts

Testing

Unit tests

proseco/tests/test_acq.py .................................... [ 21%] proseco/tests/test_catalog.py .......................................... [ 47%] proseco/tests/test_core.py ........................... [ 63%] proseco/tests/test_diff.py ...... [ 67%] proseco/tests/test_fid.py ............... [ 76%] proseco/tests/test_guide.py ................................... [ 97%] proseco/tests/test_mon_full_cat.py .... [100%]

================================================ 165 passed in 29.33s ================================================ (ska3-flight-2024.1rc4) ➜ proseco git:(ruff) git rev-parse HEAD
f0b09d8559778ff1587e00563d71a93e4e1dea7e


Independent check of unit tests by Jean
- [x] Linux in speedy test

jeanconn-fido> source /proj/sot/ska3/test/bin/ska_envs.sh jeanconn-fido> pytest ============================================================= test session starts ============================================================= platform linux -- Python 3.11.8, pytest-7.4.4, pluggy-1.4.0 rootdir: /proj/sot/ska/jeanproj/git configfile: pytest.ini plugins: anyio-4.3.0, timeout-2.2.0 collected 165 items

proseco/tests/test_acq.py .................................... [ 21%] proseco/tests/test_catalog.py .......................................... [ 47%] proseco/tests/test_core.py ........................... [ 63%] proseco/tests/test_diff.py ...... [ 67%] proseco/tests/test_fid.py ............... [ 76%] proseco/tests/test_guide.py ................................... [ 97%] proseco/tests/test_mon_full_cat.py .... [100%]

============================================================== warnings summary =============================================================== ../../../../ska3/test/lib/python3.11/site-packages/tables/node.py:251: 1 warning proseco/proseco/tests/test_acq.py: 34 warnings proseco/proseco/tests/test_catalog.py: 52 warnings proseco/proseco/tests/test_core.py: 17 warnings proseco/proseco/tests/test_fid.py: 18 warnings proseco/proseco/tests/test_guide.py: 108 warnings proseco/proseco/tests/test_mon_full_cat.py: 5 warnings /proj/sot/ska3/test/lib/python3.11/site-packages/tables/node.py:251: DeprecationWarning: alltrue is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use all instead. self._v_objectid = self._g_open()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================================================ 165 passed, 235 warnings in 135.18s (0:02:15) ================================================ jeanconn-fido> git rev-parse HEAD f0b09d8559778ff1587e00563d71a93e4e1dea7e



### Functional tests
<!-- Describe and document results of any functional tests, otherwise leave the text below -->
No functional testing.