Skip to content

Commit a551558

Browse files
Sfonxuslayoo
andauthored
Minimize setup.py and update pyproject.toml + numerous pre-commit changes (#1577)
Co-authored-by: Sylwester Arabas <sylwester.arabas@agh.edu.pl>
1 parent 90eb46c commit a551558

File tree

21 files changed

+129
-142
lines changed

21 files changed

+129
-142
lines changed

PySDM/backends/impl_numba/methods/freezing_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def freeze_time_dependent(
116116
a_w_ice,
117117
temperature,
118118
relative_humidity,
119-
thaw: bool
119+
thaw: bool,
120120
):
121121
self.freeze_time_dependent_body(
122122
rand.data,

PySDM/environments/kinematic_1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def init_attributes(
4040
spectral_discretisation,
4141
kappa,
4242
z_part=None,
43-
collisions_only=False
43+
collisions_only=False,
4444
):
4545
super().sync()
4646
self.notify()

PySDM/environments/kinematic_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def init_attributes(
4444
dry_radius_spectrum,
4545
rtol=default_rtol,
4646
n_sd=None,
47-
spectral_sampling=ConstantMultiplicity
47+
spectral_sampling=ConstantMultiplicity,
4848
):
4949
super().sync()
5050
self.notify()

PySDM/initialisation/aerosol_composition/dry_aerosol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(
2626
densities: Dict[str, float],
2727
molar_masses: Dict[str, float],
2828
is_soluble: Dict[str, bool],
29-
ionic_dissociation_phi: Dict[str, int]
29+
ionic_dissociation_phi: Dict[str, int],
3030
):
3131
self._modes = None
3232
self.compounds = compounds

PySDM/physics/surface_tension/compressed_film_ruehl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def sigma(const, T, v_wet, v_dry, f_org): # pylint: disable=too-many-locals
8181
minfun(bracket[1], *args),
8282
rtol,
8383
max_iters,
84-
within_tolerance
84+
within_tolerance,
8585
)
8686
assert iters != max_iters
8787

PySDM/products/aqueous_chemistry/acidity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(
1717
weighting="volume",
1818
attr="conc_H",
1919
unit="dimensionless",
20-
name=None
20+
name=None,
2121
):
2222
assert attr in ("pH", "moles_H", "conc_H")
2323
self.attr = attr

PySDM/products/freezing/frozen_particle_concentration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(
1717
unit="m^-3",
1818
name=None,
1919
specific=False,
20-
stp=False
20+
stp=False,
2121
):
2222
super().__init__(specific=specific, stp=stp, unit=unit, name=name)
2323
self.__filter_range = [-np.inf, 0]

examples/PySDM_examples/Arabas_and_Shima_2017/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, settings, backend=CPU):
2525
{"override_jit_flags": {"parallel": False}}
2626
if backend == CPU
2727
else {}
28-
)
28+
),
2929
),
3030
n_sd=1,
3131
environment=Parcel(

examples/PySDM_examples/Arabas_et_al_2025/make_particulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def make_particulator(
2525
droplet_volume,
2626
total_particle_number,
2727
volume,
28-
thaw=False
28+
thaw=False,
2929
):
3030
formulae_ctor_args = {
3131
"seed": seed,

examples/PySDM_examples/Grabowski_and_Pawlowska_2023/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(
2424
displacement: float = 1000 * si.m,
2525
mass_accommodation_coefficient: float = 0.3,
2626
rtol_thd: float = condensation_tolerance,
27-
rtol_x: float = condensation_tolerance
27+
rtol_x: float = condensation_tolerance,
2828
):
2929
self.formulae = Formulae(constants={"MAC": mass_accommodation_coefficient})
3030
self.n_sd = n_sd

0 commit comments

Comments
 (0)