Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,21 @@ install:
pip install -e .

format:
ruff check --select I --fix rocketpy/ tests/ docs/
ruff format rocketpy/ tests/ docs/
@ruff check --select I --fix rocketpy/ tests/ docs/
@ruff format rocketpy/ tests/ docs/
@echo Ruff formatting completed.

lint: ruff-lint pylint

ruff-lint:
ruff check rocketpy/ tests/ docs/ --output-file=.ruff-report.txt
@echo Running ruff check...
@ruff check rocketpy/ tests/ docs/ --output-file=.ruff-report.txt
@echo Ruff report generated at ./.ruff-report.txt

pylint:
-pylint rocketpy/ tests/ docs/ --output=.pylint-report.txt
@echo Running pylint check...
@pylint rocketpy/ tests/ docs/ --output=.pylint-report.txt
@echo Pylint report generated at ./.pylint-report.txt

build-docs:
cd docs && $(PYTHON) -m pip install -r requirements.txt && make html
Expand Down
7 changes: 2 additions & 5 deletions docs/examples/astra_flight_sim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@
"metadata": {},
"outputs": [],
"source": [
"from rocketpy import Function, Environment, Flight, Rocket, SolidMotor\n",
"from rocketpy.motors import CylindricalTank\n",
"from rocketpy.motors.tank import MassFlowRateBasedTank\n",
"\n",
"import matplotlib.pyplot as plt\n",
"\n",
"from rocketpy import Environment, Flight, Function, Rocket, SolidMotor\n",
"\n",
"plt.style.use(\"seaborn-v0_8-colorblind\")"
]
},
Expand Down Expand Up @@ -380,7 +378,6 @@
"source": [
"from rocketpy.simulation.flight_data_importer import FlightDataImporter\n",
"\n",
"\n",
"columns_map = {\"t\": \"time\", \"alt\": \"altitude\"}\n",
"\n",
"telemetry_data = FlightDataImporter(\n",
Expand Down
Loading