RadioAstronomySoftwareGroup / pyuvsim

A ultra-high precision package for simulating radio interferometers in python on compute clusters.
https://pyuvsim.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
42 stars 6 forks source link

Use black formatting #454

Closed bhazelton closed 3 months ago

bhazelton commented 3 months ago

Description

More consistent code formatting.

For review purposes: I only made changes by hand in .pre-commit-config.yaml and pyproject.toml to set up black. Then I ran pre-commit run --all and let black make changes. I then had to shorten a couple of lines that had strings that black couldn't break up. I also turned formatting off for a small section in simsetup.py where the hera text catalog is defined to allow the arrays of numbers to keep their existing formatting. All other changes were made automatically by black.

Motivation and Context

closes #272

Types of changes

Checklist:

For all pull requests:

Build or continuous integration change checklist:

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.86%. Comparing base (9ad0c74) to head (6e5bdf8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #454 +/- ## ======================================= Coverage 99.86% 99.86% ======================================= Files 12 12 Lines 2161 2161 ======================================= Hits 2158 2158 Misses 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.