Skip to content

Commit

Permalink
Merge pull request #15254 from WilliamJamieson/feature/pyproject-black
Browse files Browse the repository at this point in the history
Black suddenly wants to add a bunch of commas?
  • Loading branch information
pllim committed Aug 30, 2023
2 parents 1280f5c + 667bfd4 commit 8beec6d
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions astropy/coordinates/tests/test_representation_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ def test_operation_unit_spherical(self, diff_cls, op, args):
# and division there will be sign flips in the spherical distance.
expected_c = op(
rep.represent_as(CartesianRepresentation, {"s": CartesianDifferential}),
*args
*args,
)
result_c = result.represent_as(
CartesianRepresentation, {"s": CartesianDifferential}
Expand All @@ -1433,7 +1433,7 @@ def test_operation_spherical_with_rv_or_pm(self, diff_cls, op, args):

expected_c = op(
rep.represent_as(CartesianRepresentation, {"s": CartesianDifferential}),
*args
*args,
)
result_c = result.represent_as(
CartesianRepresentation, {"s": CartesianDifferential}
Expand Down
2 changes: 1 addition & 1 deletion astropy/coordinates/tests/test_sky_coord_velocities.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def test_sc_spherical_with_pm_or_rv_only(self, diff_info, diff_cls):
ra=[10, 20] * u.deg,
dec=[-10, 10] * u.deg,
distance=1.0 * u.kpc,
**diff_info
**diff_info,
)
assert isinstance(sc.data, SphericalRepresentation)
assert isinstance(sc.data.differentials["s"], diff_cls)
Expand Down
2 changes: 1 addition & 1 deletion astropy/cosmology/_io/ecsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def write_ecsv(
cls=QTable,
cosmology_in_meta=True,
rename=None,
**kwargs
**kwargs,
):
"""Serialize the cosmology into a ECSV.
Expand Down
2 changes: 1 addition & 1 deletion astropy/cosmology/_io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ def convert_parameter_to_model_parameter(parameter, value, meta=None):
description=parameter.__doc__,
default=value,
unit=getattr(value, "unit", None),
**extra
**extra,
)
4 changes: 2 additions & 2 deletions astropy/cosmology/flrw/lambdacdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down Expand Up @@ -668,7 +668,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down
2 changes: 1 addition & 1 deletion astropy/cosmology/flrw/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ def test_is_equivalent(self, cosmo, nonflatcosmo):
flat = nonflat_cosmo_cls(
*self.cls_args,
Ode0=1.0 - cosmo.Om0 - cosmo.Ogamma0 - cosmo.Onu0,
**self.cls_kwargs
**self.cls_kwargs,
)
flat._Ok0 = 0.0
assert flat.is_equivalent(cosmo)
Expand Down
4 changes: 2 additions & 2 deletions astropy/cosmology/flrw/w0cdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down Expand Up @@ -312,7 +312,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down
4 changes: 2 additions & 2 deletions astropy/cosmology/flrw/w0wacdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down Expand Up @@ -303,7 +303,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down
4 changes: 2 additions & 2 deletions astropy/cosmology/flrw/w0wzcdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down Expand Up @@ -288,7 +288,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down
4 changes: 2 additions & 2 deletions astropy/cosmology/flrw/wpwazpcdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down Expand Up @@ -332,7 +332,7 @@ def __init__(
Ob0=None,
*,
name=None,
meta=None
meta=None,
):
super().__init__(
H0=H0,
Expand Down
2 changes: 1 addition & 1 deletion astropy/io/ascii/tests/test_fixedwidth.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def test_read_detect_col_starts_or_ends():
table,
Reader=ascii.FixedWidthNoHeader,
names=("Name", "Phone", "TCP"),
**kwargs
**kwargs,
)
assert_equal(tuple(dat.dtype.names), ("Name", "Phone", "TCP"))
assert_equal(dat[0][1], "555- 1234")
Expand Down
2 changes: 1 addition & 1 deletion astropy/nddata/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def support_nddata(
repack=False,
returns=None,
keeps=None,
**attribute_argument_mapping
**attribute_argument_mapping,
):
"""Decorator to wrap functions that could accept an NDData instance with
its properties passed as function arguments.
Expand Down
2 changes: 1 addition & 1 deletion astropy/timeseries/downsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def aggregate_downsample(
time_bin_start=None,
time_bin_end=None,
n_bins=None,
aggregate_func=None
aggregate_func=None,
):
"""
Downsample a time series by binning values into bins with a fixed size or
Expand Down
2 changes: 1 addition & 1 deletion astropy/units/tests/test_quantity_non_ufuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ def check(
value_args=None,
value_kwargs=None,
expected_units=None,
**kwargs
**kwargs,
):
"""Check quanties are treated correctly in the histogram function.
Test is done by applying ``function(*args, **kwargs)``, where
Expand Down

0 comments on commit 8beec6d

Please sign in to comment.