Skip to content

Commit

Permalink
Fix code style issues with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
lint-action committed Feb 13, 2024
1 parent 60420bb commit dce2080
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
"tests.fixtures.parachutes.parachute_fixtures",
"tests.fixtures.rockets.rocket_fixtures",
"tests.fixtures.surfaces.surface_fixtures",
"tests.fixtures.units.numerical_fixtures"
"tests.fixtures.units.numerical_fixtures",
]

#


def pytest_addoption(parser):
"""Add option to run slow tests. This is used to skip slow tests by default.
Expand Down Expand Up @@ -76,5 +77,3 @@ def pytest_collection_modifyitems(config, items):


## Functions


2 changes: 1 addition & 1 deletion tests/fixtures/environment/environment_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def env_analysis():
max_expected_altitude=None,
)

return env_analysis
return env_analysis
2 changes: 1 addition & 1 deletion tests/fixtures/function/function_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ def lambda_quad_func():
func = lambda x: x**2
return Function(
source=func,
)
)
14 changes: 11 additions & 3 deletions tests/fixtures/hybrid/hybrid_fixtures.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import numpy as np
import pytest

from rocketpy import (CylindricalTank, Fluid, Function, HybridMotor,
LevelBasedTank, LiquidMotor, MassBasedTank,
SphericalTank, UllageBasedTank)
from rocketpy import (
CylindricalTank,
Fluid,
Function,
HybridMotor,
LevelBasedTank,
LiquidMotor,
MassBasedTank,
SphericalTank,
UllageBasedTank,
)


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/fixtures/motor/motor_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
## Motors and rockets



@pytest.fixture
def cesaroni_m1670(): # old name: solid_motor
"""Create a simple object of the SolidMotor class to be used in the tests.
Expand Down Expand Up @@ -141,4 +140,4 @@ def generic_motor():
dry_inertia=(0.2, 0.2, 0.08),
)

return motor
return motor
2 changes: 1 addition & 1 deletion tests/fixtures/rockets/rocket_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,4 @@ def dimensionless_calisto(kg, m, dimensionless_cesaroni_m1670):
coordinate_system_orientation="tail_to_nose",
)
example_rocket.add_motor(dimensionless_cesaroni_m1670, position=(-1.373) * m)
return example_rocket
return example_rocket
1 change: 0 additions & 1 deletion tests/fixtures/surfaces/surface_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ def calisto_rail_buttons():
angular_position=45,
name="Rail Buttons",
)

2 changes: 1 addition & 1 deletion tests/fixtures/units/numerical_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ def kg():
numericalunits.kg
A simple object of the numericalunits.kg class
"""
return numericalunits.kg
return numericalunits.kg

0 comments on commit dce2080

Please sign in to comment.