From d3061d0ed7068f6865fce2e18a885edb454dc02c Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Sun, 2 Mar 2025 23:09:33 -0300 Subject: [PATCH 1/2] DEV: runs make format --- docs/examples/astra_flight_sim.ipynb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/examples/astra_flight_sim.ipynb b/docs/examples/astra_flight_sim.ipynb index def79f1a6..6aeccc44d 100644 --- a/docs/examples/astra_flight_sim.ipynb +++ b/docs/examples/astra_flight_sim.ipynb @@ -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\")" ] }, @@ -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", From 55bd1a4d8ac90863a20d18390f8a01a9cca348f1 Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Sun, 2 Mar 2025 23:10:15 -0300 Subject: [PATCH 2/2] DEV: update Makefile --- Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e5c38e227..0b077d453 100644 --- a/Makefile +++ b/Makefile @@ -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